[Pkg-javascript-commits] [node-async] 203/480: Issue 122: specify arguments to callbacks in the documentation

Jonas Smedegaard js at moszumanska.debian.org
Fri May 2 08:58:26 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 16a4218c7c1b676299b08d77d0bb12cca890f259
Author: Aleksander Adamowski <aleksander.adamowski at gmail.com>
Date:   Sun Jul 15 15:17:23 2012 +0200

    Issue 122: specify arguments to callbacks in the documentation
---
 README.md | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/README.md b/README.md
index 1bbbc47..92f7ffb 100644
--- a/README.md
+++ b/README.md
@@ -119,7 +119,9 @@ __Arguments__
 
 * arr - An array to iterate over.
 * iterator(item, callback) - A function to apply to each item in the array.
-  The iterator is passed a callback which must be called once it has completed.
+  The iterator is passed a callback(err) which must be called once it has completed.
+  If no error has occured, the callback should be run without arguments or 
+  with an explicit null argument.
 * callback(err) - A callback which is called after all the iterator functions
   have finished, or an error has occurred.
 
@@ -157,6 +159,8 @@ __Arguments__
 * limit - How many items should be in each batch.
 * iterator(item, callback) - A function to apply to each item in the array.
   The iterator is passed a callback which must be called once it has completed.
+  If no error has occured, the callback should be run without arguments or 
+  with an explicit null argument.
 * callback(err) - A callback which is called after all the iterator functions
   have finished, or an error has occurred.
 
@@ -228,7 +232,8 @@ __Arguments__
 
 * arr - An array to iterate over.
 * iterator(item, callback) - A truth test to apply to each item in the array.
-  The iterator is passed a callback which must be called once it has completed.
+  The iterator is passed a callback which must be called with a boolean argument
+  once it has completed.
 * callback(results) - A callback which is called after all the iterator
   functions have finished.
 
@@ -330,7 +335,8 @@ __Arguments__
 
 * arr - An array to iterate over.
 * iterator(item, callback) - A truth test to apply to each item in the array.
-  The iterator is passed a callback which must be called once it has completed.
+  The iterator is passed a callback which must be called with a boolean argument
+  once it has completed.
 * callback(result) - A callback which is called as soon as any iterator returns
   true, or after all the iterator functions have finished. Result will be
   the first item in the array that passes the truth test (iterator) or the
@@ -398,7 +404,8 @@ __Arguments__
 
 * arr - An array to iterate over.
 * iterator(item, callback) - A truth test to apply to each item in the array.
-  The iterator is passed a callback which must be called once it has completed.
+  The iterator is passed a callback which must be called with a boolean argument
+  once it has completed.
 * callback(result) - A callback which is called as soon as any iterator returns
   true, or after all the iterator functions have finished. Result will be
   either true or false depending on the values of the async tests.
@@ -425,7 +432,8 @@ __Arguments__
 
 * arr - An array to iterate over.
 * iterator(item, callback) - A truth test to apply to each item in the array.
-  The iterator is passed a callback which must be called once it has completed.
+  The iterator is passed a callback which must be called with a boolean argument
+  once it has completed.
 * callback(result) - A callback which is called after all the iterator
   functions have finished. Result will be either true or false depending on
   the values of the async tests.

-- 
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