Post(s) tagged Async.parallel

Best and easy way to use Async parallel in Node Js

Using the below method can get the results for each task very easily

async.parallel({
    firstTask: function (callback) {
        callback(null, 'fist task result');
    },
    secondTask: function (callback) {
        callback(null, 'second task result');
    }
}, function (err, results) {
    // results now equals to: results.firstTask: 'fist task result', results.secondTask: 'second task result'
});


71 Views Posted on February 10, 2022
SPONSORS