|
|
|
|
|
by nailer
3742 days ago
|
|
We had, and still prefer (looking at npm stats) the async module. Eg: promise.then(function(){}).then(function(){})
is not substantially different than: async.waterfall([function(){}, function(){}])
Promise advocates kept pretending async didn't exist though, and everybody was using callback hell. |
|
async is pretty terrible though, you cannot pass the results from one execution to another, i.e. passing results from one function in async.series to another, which results in developers tending to pollute variable scope by defining above and filling it in inside each callback. This prevents the ability to write clean isolated testable functions.