Implemented parallel task

dependabot/npm_and_yarn/BuildServer/eslint-7.2.0
Inga 🏳‍🌈 11 years ago
commit f84e09daaa
  1. 17
      BuildServer/lib/tasks/parallel.js

@ -0,0 +1,17 @@
"use strict";
var async = require("async");
module.exports = function (params, processor) {
return {
process: function () {
async.parallel(params.tasks.map(function (task) {
return function (callback) {
return processor.processTask(task, function (err) {
return callback();
})
}
}), processor.done.bind(processor));
}
};
};
Loading…
Cancel
Save