concept asynchronous logic in category node

appears as: synchronous logic
Node.js in Action, Second Edition

This is an excerpt from Manning's book Node.js in Action, Second Edition.

  • How to sequence asynchronous logic
  • Flow-control tools handle the bookkeeping for you, which makes grouping asynchronous serial or parallel tasks easy. Although plenty of community-created add-ons deal with sequencing asynchronous logic, implementing flow control yourself demystifies it and helps you gain a deeper understanding of how to deal with the challenges of asynchronous programming.

    Listing 9.12. Testing asynchronous logic