I need to do the code like following:
function taskFirst(k, v) { console.log(k, v); } function taskSecond(k, v) { console.log(k, v); } function run() {
Better way.
const a1 = (a, callback) => { console.log(a, 'a1') callback() } const a2 = (a, callback) => { console.log(a, 'a2') callback() } const run = () => { async.series([ a1.bind(null, 'asd'), a2.bind(null, 'asd2') ], () => { console.log('finish') }) } run()