|
|
@ -5,6 +5,6 @@ const async = require("async"); |
|
|
|
module.exports = (params, processor) => { |
|
|
|
module.exports = (params, processor) => { |
|
|
|
const mapper = Function.bind.bind(processor.processTask, processor); |
|
|
|
const mapper = Function.bind.bind(processor.processTask, processor); |
|
|
|
return { |
|
|
|
return { |
|
|
|
process: () => async.series(params.tasks.map((element) => mapper(element)), processor.done.bind(processor)) |
|
|
|
process: () => async.series(params.tasks.map(mapper), processor.done.bind(processor)) |
|
|
|
}; |
|
|
|
}; |
|
|
|
}; |
|
|
|
}; |
|
|
|