[Pkg-javascript-commits] [node-async] 127/480: Waterfall docs now show final result passing.

Jonas Smedegaard js at moszumanska.debian.org
Fri May 2 08:58:19 UTC 2014


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository node-async.

commit 751cd30602545db170b6f508a222b03e53598548
Author: Matt Perpick <clutchski at gmail.com>
Date:   Mon Jan 16 04:07:08 2012 -0500

    Waterfall docs now show final result passing.
---
 README.md | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/README.md b/README.md
index 94ee562..8e8155f 100644
--- a/README.md
+++ b/README.md
@@ -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__
 
@@ -670,7 +672,9 @@ __Example__
             // arg1 now equals 'three'
             callback(null, 'done');
         }
-    ]);
+    ], function (err, result) {
+       // result now equals 'done'    
+    });
 
 
 ---------------------------------------

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-async.git



More information about the Pkg-javascript-commits mailing list