i was learning async library and just tried some codes myself and i am issueing a problem that can`t handle, can you please look at the code down below:)
async.parallel([ function (cb) { setTimeout(() => { let a = "asd"; console.log("AAA"); cb(a, null); }, 2000); }, function (cb) { setTimeout( () => { let b = "dasd"; console.log("BBBBB"); cb(b, null); }, 5000); } ], function (error, results) { console.log("CCC"); console.log("Errors: " + error); console.log("Results: " + results); }); I supposed that BBB should NOT output to the screen, but to my surprise it DOES, can you help me understand why?
BBBBBwould not be output?setTimeoutstill gets called after 5 seconds regardless.s email and username are not taken by someone else in async.parallel but doesnt work