knack
Knack transparently manages the execution of the asynchronous functions as a queue with a predetermined width
Knack simply wraps any promise-returning function and returns function, executed in a queue
Install
npm install --save knack
Usage
{ return Promise} // All fields are optionalconst knack = // Make wrapped functionconst asyncQueued = // => Promise<'ok'> // Or just make queue task executorconst task = knack// => Promise<'ok'>
License
MIT © Zero Bias