1.0.0 • Published 5 years ago

promise-limit-manager v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

promise-limit-manager@v1.0.0

Returns information about how many executions can still occur, are occurring and their limits with the promise-limit package.

const { managerPromise } = require('./index');
const { promiseLimit } = managerPromise('myNamespace');
const myPromiseLimit = promiseLimit(10);

myPromiseLimit.on('done', (x) => console.log(x))
myPromiseLimit(() => true).then(() => console.log(promiseLimit.status));

Installation

Download node at nodejs.org and install it, if you haven't already.

npm install promise-limit-manager --save

This package is provided in these module formats:

  • CommonJS

Dependencies

None

Dev Dependencies

License

MIT