summaryrefslogtreecommitdiff
path: root/lib/map.js
diff options
context:
space:
mode:
authorGraeme Yeates <yeatesgraeme@gmail.com>2016-07-20 19:19:38 -0400
committerGraeme Yeates <yeatesgraeme@gmail.com>2016-07-20 19:39:07 -0400
commitaa5673e23d5f84c954c576a91ca84b8e6b1604f1 (patch)
treea72bb49fe6350912be570aaffedba22bcfe657cc /lib/map.js
parentddef4334de9a654d9b34a3faed5eaa37b673d414 (diff)
downloadasync-aa5673e23d5f84c954c576a91ca84b8e6b1604f1.tar.gz
Add a fast path for eachOffast-path-eachOf
Diffstat (limited to 'lib/map.js')
-rw-r--r--lib/map.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/map.js b/lib/map.js
index eecab03..4c0b226 100644
--- a/lib/map.js
+++ b/lib/map.js
@@ -1,5 +1,5 @@
-import mapLimit from './mapLimit';
-import doLimit from './internal/doLimit';
+import doParallel from './internal/doParallel';
+import map from './internal/map';
/**
* Produces a new collection of values by mapping each value in `coll` through
@@ -37,4 +37,4 @@ import doLimit from './internal/doLimit';
* // results is now an array of stats for each file
* });
*/
-export default doLimit(mapLimit, Infinity);
+export default doParallel(map);