Skip to content

Commit

Permalink
Merge pull request caolan#79 from clutchski/patch-1
Browse files Browse the repository at this point in the history
Updated waterfall docs to show final result is passed
  • Loading branch information
Caolan McMahon committed Feb 13, 2012
2 parents 0225f70 + 751cd30 commit ee3f974
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -654,8 +654,10 @@ __Arguments__

* tasks - An array of functions to run, each function is passed a callback it
must call on completion.
* callback(err) - An optional callback to run once all the functions have
completed. This function gets passed any error that may have occurred.
* callback(err, [results]) - An optional callback to run once all the functions
have completed. This will be passed the results of the last task's callback.



__Example__

Expand All @@ -670,7 +672,9 @@ __Example__
// arg1 now equals 'three'
callback(null, 'done');
}
]);
], function (err, result) {
// result now equals 'done'
});


---------------------------------------
Expand Down

0 comments on commit ee3f974

Please sign in to comment.