Lines Matching refs:callback
6 the array. However, if any of the functions pass an error to the callback, the
7 next function is not executed and the main callback is immediately called with
21 `callback(err, result1, result2, ...)` it must call on completion. The first
24 * **optionalCallback** - An optional callback to run once all the functions have
25 completed. This will be passed the results of the last task's callback.
32 waterfall(tasks, callback);
39 waterfall(tasks, callback);
42 window.waterfall(tasks, callback);
49 function(callback){
50 callback(null, 'one', 'two');
52 function(arg1, arg2, callback){
53 callback(null, 'three');
55 function(arg1, callback){
57 callback(null, 'done');
74 /* with arguments, initializer function, and final callback */
84 // final callback