DEV Community

Discussion on: Executing arrays of async/await JavaScript functions in series vs. concurrently

Collapse
 
matsaleh profile image
Matthew Walker

Nice article, thanks!

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!