summaryrefslogtreecommitdiff
path: root/lib/parallel.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/parallel.js')
-rw-r--r--lib/parallel.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/parallel.js b/lib/parallel.js
index edf8be4..fafae9d 100644
--- a/lib/parallel.js
+++ b/lib/parallel.js
@@ -1,5 +1,5 @@
import eachOf from './eachOf';
-import parallel from './internal/parallel';
+import _parallel from './internal/parallel';
/**
* Run the `tasks` collection of functions in parallel, without waiting until
@@ -34,6 +34,7 @@ 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
*
* @example
* async.parallel([
@@ -70,6 +71,6 @@ import parallel from './internal/parallel';
* // results is now equals to: {one: 1, two: 2}
* });
*/
-export default function parallelLimit(tasks, callback) {
- parallel(eachOf, tasks, callback);
+export default function parallel(tasks, callback) {
+ return _parallel(eachOf, tasks, callback);
}