diff options
author | Graeme Yeates <yeatesgraeme@gmail.com> | 2015-12-29 16:39:20 -0500 |
---|---|---|
committer | Graeme Yeates <yeatesgraeme@gmail.com> | 2015-12-29 17:19:07 -0500 |
commit | 90656cfd3b6750397a1f5e9539323391cf0e50c6 (patch) | |
tree | 98034c45b789f46bdec3f04e3cdec8b9fb4274c3 /lib/auto.js | |
parent | 1448f24a5e7d5c4b9ff56ef573d35291511c2a71 (diff) | |
download | async-90656cfd3b6750397a1f5e9539323391cf0e50c6.tar.gz |
Set up async bundles
Diffstat (limited to 'lib/auto.js')
-rw-r--r-- | lib/auto.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/auto.js b/lib/auto.js index 82ad468..35fd012 100644 --- a/lib/auto.js +++ b/lib/auto.js @@ -8,7 +8,7 @@ import isArray from 'lodash/lang/isArray'; import okeys from 'lodash/object/keys'; import noop from 'lodash/utility/noop'; import once from 'lodash/function/once'; -import restParam from 'lodash/function/restParam'; +import rest from 'lodash/function/rest'; import setImmediate from './internal/setImmediate'; @@ -54,7 +54,7 @@ export default function (tasks, concurrency, callback) { arrayEach(keys, function (k) { var task = isArray(tasks[k]) ? tasks[k]: [tasks[k]]; - var taskCallback = restParam(function(err, args) { + var taskCallback = rest(function(err, args) { runningTasks--; if (args.length <= 1) { args = args[0]; |