summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorTim Vergenz <tvergenz@palantir.com>2014-09-30 11:10:37 -0400
committerTim Vergenz <vergenzt@gmail.com>2015-10-25 11:16:54 -0400
commitf801c686525431ee13fe6de8d4e09945f1256abe (patch)
tree7ed6a319735d4d97133852117fe136f1f2659937 /README.md
parent56bdb50912df8de4b1aba09c357c808965cd1b96 (diff)
downloadasync-f801c686525431ee13fe6de8d4e09945f1256abe.tar.gz
Add concurrency argument to async.auto
Diffstat (limited to 'README.md')
-rw-r--r--README.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/README.md b/README.md
index 0b86613..293e678 100644
--- a/README.md
+++ b/README.md
@@ -1256,7 +1256,7 @@ cargo.push({name: 'baz'}, function (err) {
---------------------------------------
<a name="auto" />
-### auto(tasks, [callback])
+### auto(tasks, [callback], [concurrency])
Determines the best order for running the functions in `tasks`, based on their requirements. Each function can optionally depend on other functions being completed first, and each function is run as soon as its requirements are satisfied.
@@ -1307,6 +1307,8 @@ __Arguments__
pass an error to their callback. Results are always returned; however, if
an error occurs, no further `tasks` will be performed, and the results
object will only contain partial results.
+* `concurrency` - An `integer` for determining the maximum number of tasks that
+ can be run in parallel. By default, as many as possible.
__Example__