summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjkroso <jkroso@gmail.com>2012-11-29 22:44:46 +1300
committerjkroso <jkroso@gmail.com>2012-11-29 22:49:06 +1300
commit033112450707e11cdfff34aa5b529595f9f8c18a (patch)
treec5ef18c999aa1455b3786dca50964554b38a8e9d
parentfd4166450732049221e979bc90fe69dd8dbd21b4 (diff)
downloadasync-0.1.24.tar.gz
added post loop docsv0.1.230.1.24
-rw-r--r--README.md16
1 files changed, 16 insertions, 0 deletions
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`.
+
---------------------------------------