I'd also highly recommend using the caolan/async package. It implements asynchronous functions such as each (iteration), whilst and until (conditional), and waterfall (chaining), among many others. It also has utilities for composing those functions, and many of them have series and parallel variants where appropriate.
It supports async/await and promises, as well as callbacks (when you must). I think it's a great additional tool for async programming with JS, especially with Node.js.
Hope this helps, and cheers!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Nice article, thanks!
I'd also highly recommend using the caolan/async package. It implements asynchronous functions such as
each
(iteration),whilst
anduntil
(conditional), andwaterfall
(chaining), among many others. It also has utilities for composing those functions, and many of them have series and parallel variants where appropriate.It supports
async/await
and promises, as well as callbacks (when you must). I think it's a great additional tool for async programming with JS, especially with Node.js.Hope this helps, and cheers!