Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return new Promise((resolve, reject) => {
async.eachLimit(
tasks,
maximumWorkers || _os.cpus().length,
(o, cb) => {
log("Starting to write pages");
workers(o, err => {
log("Finished writing pages");
cb(err);
});
},
err => {
workerFarm.end(workers);
if (err) {
return reject(err);
'neo-async_v0': function(callback) {
neo_async_v0.eachLimit(array, 4, iterator, callback);
},
'neo-async_v1': function(callback) {