summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorCaolan McMahon <caolan@caolanmcmahon.com>2010-09-17 18:02:31 +0100
committerCaolan McMahon <caolan@caolanmcmahon.com>2010-09-17 18:02:31 +0100
commit28fed845b118cf6f159c37479949fb81d76ad1e9 (patch)
treea1af0b0bcc4193da2336265029a37d77f0972f12 /README.md
parent263f71f52d6f8d0b73d47223c6e761c06de90b21 (diff)
downloadasync-28fed845b118cf6f159c37479949fb81d76ad1e9.tar.gz
added concatSeries
Diffstat (limited to 'README.md')
-rw-r--r--README.md11
1 files changed, 9 insertions, 2 deletions
diff --git a/README.md b/README.md
index eae3cd6..852a64e 100644
--- a/README.md
+++ b/README.md
@@ -100,7 +100,8 @@ every
: Returns true if every element in the array satisfies an async test.
concat
-: Apply an iterator to each item in a list and concatenate the results.
+: Apply an iterator to each item in a list and concatenate the results. Series
+ version: concatSeries.
### Flow Control
@@ -410,7 +411,9 @@ __Example__
### concat(arr, iterator, callback)
Applies an iterator to each item in a list, concatenating the results. Returns the
-concatenated list.
+concatenated list. The iterators are called in parallel, and the results are
+concatenated as they return. There is no guarantee that the results array will
+be returned in the original order of the arguments passed to the iterator function.
__Arguments__
@@ -428,6 +431,10 @@ __Example__
// files is now a list of filenames that exist in the 3 directories
});
+### concatSeries(arr, iterator, callback)
+
+Same as async.concat, but executes in series instead of parallel.
+
### series(tasks, [callback])