I am just getting started with the async npm package to re-write, and then extend some code that is rotting in callback hell; just came here, to know if anyone can quickly give me a difference between the async.waterfall, and async.series methods; both of them look almost the same to me? Also, can I have a async call inside another async call? Thanks in advance!
Rolando Guedes
Web Developer
Series: Run the functions in the tasks collection in series, each one running once the previous function has completed.
Waterfall: Runs the tasks array of functions in series, each passing their results to the next in the array.
In short: Are equal, but waterfall pass the result of task to the next task.