summaryrefslogtreecommitdiff
path: root/lib/waterfall.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/waterfall.js')
-rw-r--r--lib/waterfall.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/waterfall.js b/lib/waterfall.js
index cb2c1fd..24befac 100644
--- a/lib/waterfall.js
+++ b/lib/waterfall.js
@@ -17,10 +17,10 @@ import wrapAsync from './internal/wrapAsync';
* @memberOf module:ControlFlow
* @method
* @category Control Flow
- * @param {Array} tasks - An array of functions to run, each function is passed
- * a `callback(err, result1, result2, ...)` it must call on completion. The
- * first argument is an error (which can be `null`) and any further arguments
- * will be passed as arguments in order to the next task.
+ * @param {Array} tasks - An array of [async functions]{@link AsyncFunction}
+ * to run.
+ * Each function should complete with any number of `result` values.
+ * The `result` values will be passed as arguments, in order, to the next task.
* @param {Function} [callback] - An optional callback to run once all the
* functions have completed. This will be passed the results of the last task's
* callback. Invoked with (err, [results]).