8 lines
231 B
JavaScript
8 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);
|
|
};
|