Skip to content

KAZOO Support Channels

This documentation is curated by 2600Hz as part of the KAZOO open source project. Join our community forums here for peer support. Only features in the docs.2600hz.com/supported space are included as part of our 2600Hz Support Services plan.

monster.waterfall()#

Syntax#

monster.waterfall(tasks[, callback]);

Parameters#

Key Description Type Default Required
tasks 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. Array true
callback(err[, result]) 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. Function false

Description#

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.