summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraeme Yeates <yeatesgraeme@gmail.com>2015-07-03 19:46:07 -0400
committerGraeme Yeates <yeatesgraeme@gmail.com>2015-07-03 19:46:07 -0400
commitcd4d65dd60d0b2e2eae8fc16d5995ac35831a87d (patch)
treeec37b512226dfc4bb2f7aa66be870fa7a6b7d301
parent2257891aa196b5a89954926f416faa386621edde (diff)
parent8c363ed50c5d26caf82363b8049a4795927bea37 (diff)
downloadasync-cd4d65dd60d0b2e2eae8fc16d5995ac35831a87d.tar.gz
Merge #833 'sans-internal-map'
* sans-internal-map: Remove interal mapLimit helper
-rw-r--r--lib/async.js8
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/async.js b/lib/async.js
index 30c5c83..819b426 100644
--- a/lib/async.js
+++ b/lib/async.js
@@ -377,14 +377,10 @@
async.map = doParallel(_asyncMap);
async.mapSeries = doSeries(_asyncMap);
- async.mapLimit = function (arr, limit, iterator, callback) {
- return _mapLimit(limit)(arr, iterator, callback);
+ async.mapLimit = function (arr, limit, iterator, callback) {
+ return doParallelLimit(limit, _asyncMap)(arr, iterator, callback);
};
- function _mapLimit(limit) {
- return doParallelLimit(limit, _asyncMap);
- }
-
// reduce only has a series version, as doing reduce in parallel won't
// work in many situations.
async.inject =