You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-3
Original file line number
Diff line number
Diff line change
@@ -1256,7 +1256,7 @@ cargo.push({name: 'baz'}, function (err) {
1256
1256
---------------------------------------
1257
1257
1258
1258
<a name="auto" />
1259
-
### auto(tasks, [callback], [concurrency])
1259
+
### auto(tasks, [concurrency], [callback])
1260
1260
1261
1261
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.
1262
1262
@@ -1302,13 +1302,12 @@ __Arguments__
1302
1302
called when finished, passing an `error` (which can be `null`) and the result of
1303
1303
the function's execution, and (2) a `results` object, containing the results of
1304
1304
the previously executed functions.
1305
+
* `concurrency` - An optional `integer` for determining the maximum number of tasks that can be run in parallel. By default, as many as possible.
1305
1306
* `callback(err, results)` - An optional callback which is called when all the
1306
1307
tasks have been completed. It receives the `err` argument if any `tasks`
1307
1308
pass an error to their callback. Results are always returned; however, if
1308
1309
an error occurs, no further `tasks` will be performed, and the results
1309
1310
object will only contain partial results.
1310
-
* `concurrency` - An `integer` for determining the maximum number of tasks that
1311
-
can be run in parallel. By default, as many as possible.
0 commit comments