promise-limit-manager
v1.0.0
Published
Returns information about how many executions can still occur, are occurring and their limits with the promise-limit package.
Downloads
2
Readme
[email protected]
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
- eslint:
- jest: Delightful JavaScript Testing.
- eslint-config-airbnb-base: Airbnb's base JS ESLint config, following our styleguide
- eslint-plugin-import: Import with sanity.
- event-emitter: Environment agnostic event emitter
- is-valid-var-name: Determines whether a string is a valid javascript variable name. ES2015 and ES5 compatibility. Strict mode evaluation by default.
- lodash:
- promise-limit: limits calls to functions that return promises
- rollup:
- rollup-plugin-buble:
- rollup-plugin-commonjs:
- rollup-plugin-filesize: A rollup plugin to show filesize in the cli
- rollup-plugin-node-resolve:
- rollup-plugin-uglify-es: Rollup plugin to minify generated bundle