Control flow library, similar to async.waterfall but with a different API and faster.
Runs some functions in series, each passing their results to the next function. If a function passes an error to the callback, then the main callback is immediately called with the error (skipping the other functions).
var waterfallize = ;var next = ;;;;// main callback;
npm install waterfallize
how does it work
The functions are wrapped with the function returned by
waterfallize(), then executed async in order (using
That means that you need to add all of them in the same tick for things to function properly.
Run the following command:
To compare the performance of the module with other popular alternatives run the following command into the terminal:
npm run benchmark