[Pkg-javascript-commits] [node-async] 224/480: added post loop docs
Jonas Smedegaard
js at moszumanska.debian.org
Fri May 2 08:58:28 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 033112450707e11cdfff34aa5b529595f9f8c18a
Author: jkroso <jkroso at gmail.com>
Date: Thu Nov 29 22:44:46 2012 +1300
added post loop docs
---
README.md | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/README.md b/README.md
index 1430894..dbbf670 100644
--- a/README.md
+++ b/README.md
@@ -88,7 +88,9 @@ So far its been tested in IE6, IE7, IE8, FF3.6 and Chrome 5. Usage:
* [series](#series)
* [parallel](#parallel)
* [whilst](#whilst)
+* [doWhilst](#doWhilst)
* [until](#until)
+* [doUntil](#doUntil)
* [waterfall](#waterfall)
* [queue](#queue)
* [auto](#auto)
@@ -664,6 +666,13 @@ async.whilst(
---------------------------------------
+<a name="doWhilst" />
+### doWhilst(fn, test, callback)
+
+The post check version of whilst. To reflect the difference in the order of operations `test` and `fn` arguments are switched. `doWhilst` is to `whilst` as `do while` is to `while` in plain JavaScript.
+
+---------------------------------------
+
<a name="until" />
### until(test, fn, callback)
@@ -672,6 +681,13 @@ or an error occurs.
The inverse of async.whilst.
+---------------------------------------
+
+<a name="doUntil" />
+### doUntil(fn, test, callback)
+
+Like doWhilst except the test is inverted. Note the argument ordering differs from `until`.
+
---------------------------------------
--
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