diff options
author | Caolan McMahon <caolan@caolanmcmahon.com> | 2010-09-17 18:02:31 +0100 |
---|---|---|
committer | Caolan McMahon <caolan@caolanmcmahon.com> | 2010-09-17 18:02:31 +0100 |
commit | 28fed845b118cf6f159c37479949fb81d76ad1e9 (patch) | |
tree | a1af0b0bcc4193da2336265029a37d77f0972f12 /README.md | |
parent | 263f71f52d6f8d0b73d47223c6e761c06de90b21 (diff) | |
download | async-28fed845b118cf6f159c37479949fb81d76ad1e9.tar.gz |
added concatSeries
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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]) |