diff options
Diffstat (limited to 'lib/parallelLimit.js')
-rw-r--r-- | lib/parallelLimit.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/parallelLimit.js b/lib/parallelLimit.js index 9a857b8..ee4335c 100644 --- a/lib/parallelLimit.js +++ b/lib/parallelLimit.js @@ -19,7 +19,8 @@ import parallel from './internal/parallel'; * functions have completed successfully. This function gets a results array * (or object) containing all the result arguments passed to the task callbacks. * Invoked with (err, results). + * @returns {Promise} a promise, if a callback is not passed */ export default function parallelLimit(tasks, limit, callback) { - parallel(eachOfLimit(limit), tasks, callback); + return parallel(eachOfLimit(limit), tasks, callback); } |