9 lines
231 B
JavaScript
9 lines
231 B
JavaScript
|
'use strict';
|
||
|
|
||
|
var parallel = require('async.util.parallel');
|
||
|
var eachOfLimit = require('async.util.eachoflimit');
|
||
|
|
||
|
module.exports = function parallelLimit(tasks, limit, cb) {
|
||
|
return parallel(eachOfLimit(limit), tasks, cb);
|
||
|
};
|