PromiseScheduler
PromiseScheduler, a scheduler to run promises in batch mode per the max concurrency set when creating. You can simply submit all your promises at any time as you wish, then all the concurrent behavior will be controlled by it.
Usage
// Initialization
const PromiseScheduler = require('promise-scheduler');
let scheduler = new PromiseScheduler(<maxConcurrency>);
// When you want to submit a promise
scheduler.submit(<your promise function>, <your parameters in array>, <your then function>, <your catch function<);
Dependency
No third party dependency, but of course need ES6 that features Promise.