monster.waterfall(tasks[, callback]);


tasks: Array (mandatory)#

An array containing functions to run. Each function is passed a callback(err, result) which it must call on completion with an error err (which can be null) and an optional result value.

callback(err[, result]): Function (optional)#

An optional callback to run once all the functions have completed. This function gets a results containing all the result arguments passed to the task callbacks.


The monster.waterfall() method is a simple wrapper for the async.waterfall() method, allowing you to run each task in a serialized manner, with the ability to access the result of the previously run task. For more information, check out the Async.js documentation.

Edit this page here