promise-concurrent
Execute a list of promises with a limited concurrency
Install
$ npm install --save promise-concurrent
Usage
const promiseConcurrent = ;const got = ; const endpoints = got got got; ;
API
promiseConcurrent(promises, [concurrency])
promises
Type: function[]
Array of functions that return a promise.
concurrency
Type: number
Default: 0
Number of concurrent executions. 0
means maximum concurrency.
License
MIT © Sam Verschueren