drainer-parallel
Queue and drain an array of functions in parallel. This is a related module to drainer
Install
npm install drainer-parallel --save
Usage
var drainer = ; var queue = { ; } { // do something ; }; var ;
Handling Errors
Each function in the array recieves a callback, done()
, to call when function in queue is complete. If you provide an argument to this callback, it will be passed into an array of errors that is passed to the final callback.
The finally callback will be called once all the items in the queue have been drained.
Run Tests
npm installnpm test