What We’ve Learned

In this chapter, we saw how common async patterns can be implemented with minimal boilerplate using the right flow control functions. Async.js has become the number-one flow control library by offering a robust combination of collection iteration and task-wrangling methods. If you have a flow control problem, the odds are very good that Async.js has a solution. Or if you’re more of the do-it-yourself type, consider Step.

Isaac Schlueter, lead developer of the Node.js project, made a very small flow control library called Slide,[43] which is used in npm. In Slide’s README, he wrote this:

You should use it as an example of how to write your own flow control utilities. You’ll never fully appreciate a flow control lib ...

Get Async JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.