diff options
author | jkroso <jkroso@gmail.com> | 2012-11-29 22:44:46 +1300 |
---|---|---|
committer | jkroso <jkroso@gmail.com> | 2012-11-29 22:49:06 +1300 |
commit | 033112450707e11cdfff34aa5b529595f9f8c18a (patch) | |
tree | c5ef18c999aa1455b3786dca50964554b38a8e9d | |
parent | fd4166450732049221e979bc90fe69dd8dbd21b4 (diff) | |
download | async-033112450707e11cdfff34aa5b529595f9f8c18a.tar.gz |
-rw-r--r-- | README.md | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -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`. + --------------------------------------- |