Promise queue with a nice API
npm install sb-promise-queuePromise queue with a nice API.
```
npm install --save sb-promise-queue
`js
interface Options {
concurrency?: number
}
class PromiseQueue {
constructor(options: Options = {concurrency: 1});
clear()
onIdle(callback: Function): Function
// call the return value function to remove listener
waitTillIdle(): Promise
add(callback: Function)
}
export { PromiseQueue }
``
The contents of this repository/package are licensed under the terms of The MIT License. See the LICENSE file for more info.