MCPcopy Create free account

hub / github.com/sindresorhus/p-limit / functions

Functions38 in github.com/sindresorhus/p-limit

↓ 5 callersFunctionrandomSleep
(min, max)
scripts/benchmarker.js:206
↓ 4 callersFunctionpLimit
(concurrency)
index.js:3
↓ 3 callersFunctionlimitFunction
(function_, options)
index.js:133
↓ 3 callersFunctionresumeNext
()
index.js:19
↓ 3 callersMethodrun
Run all benchmark suites. @param {object} options - Options for running benchmarks. @param {boolean} [options.showNotes=true] - Whether to show hel
scripts/benchmarker.js:54
↓ 2 callersMethodscenario
Add a scenario to this benchmark suite. @param {string} name - The name of the scenario. @param {Function} fn - The function to benchmark. Can be a
scripts/benchmarker.js:101
↓ 2 callersFunctionvalidateConcurrency
(concurrency)
index.js:144
↓ 1 callersMethod#runScenario
(scenario)
scripts/benchmarker.js:149
↓ 1 callersFunctionadaptiveTask
benchmark.js:206
↓ 1 callersFunctioncpuIntensiveTask
benchmark.js:129
↓ 1 callersFunctioncpuWork
(iterations = 1000)
scripts/benchmarker.js:214
↓ 1 callersFunctionenqueue
(function_, resolve, reject, arguments_)
index.js:50
↓ 1 callersFunctiongenerator
(function_, ...arguments_)
index.js:66
↓ 1 callersFunctioninputs
()
test.js:302
↓ 1 callersFunctionioIntensiveTask
benchmark.js:135
↓ 1 callersFunctionlimitedFunction
(...arguments_)
index.js:136
↓ 1 callersFunctionmapper
([value, ms])
test.js:20
↓ 1 callersFunctionmixedTask
benchmark.js:143
↓ 1 callersFunctionnext
()
index.js:27
↓ 1 callersFunctionprocessFile
benchmark.js:66
↓ 1 callersFunctionrunWithContext
(function_, ...arguments_)
test.js:98
↓ 1 callersMethodscenarios
Add multiple scenarios with different configurations. @param {Array<{name: string, config: object}>} configs - Array of scenario configurations. @p
scripts/benchmarker.js:122
↓ 1 callersFunctionsimpleTask
benchmark.js:166
↓ 1 callersFunctionsimulateApiCall
benchmark.js:25
↓ 1 callersFunctionsimulateDatabaseQuery
benchmark.js:95
↓ 1 callersFunctionstartContext
test.js:55
↓ 1 callersMethodsuite
Create a new benchmark suite. @param {string} name - The name of the benchmark suite. @param {object} options - Configuration options. @param {str
scripts/benchmarker.js:40
↓ 1 callersFunctiontaskWithDelay
(delay, value)
benchmark.js:184
↓ 1 callersFunctiontemporaryDirectory
(name)
scripts/benchmarker.js:231
Function[Symbol.iterator]
()
test.js:345
FunctionaddValue
(context, value)
test.js:100
FunctioncheckId
test.js:50
Methodconstructor
()
scripts/benchmarker.js:17
Methodconstructor
(name, options, benchmarker)
scripts/benchmarker.js:85
Functionrun
(function_, resolve, arguments_)
index.js:32
Methodrun
Run this benchmark suite. @returns {Promise<void>}
scripts/benchmarker.js:135
Functionset
(newConcurrency)
index.js:94
Functionvalue
()
index.js:78