The 80 20 Guide to Async Await
summary
Covers concrete ES2017 async/await behavior with runnable examples on node 7.6+ and Node 8, showing fetch/node-fetch to hit httpbin.org/ip and an fs-wrapped Promise that prints its own source. Demonstrates that awaiting pauses the async function but does not block the event loop (examples that print “2 1 3” versus “1 2 3”), contrasts sequential for-loops with the broken forEach pattern, explains try/catch vs top-level .catch, shows Express needs a wrapper while Mocha already supports async functions.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 8:20Promise of Lying
- 12:10Event Loop
- 15:30For Each
- 16:35Fibonacci
- 19:57Error Handling
- 20:35Integrate with Existing Libraries
- 23:17Summary
related talks
33mAsync Functions Awaiting You
14mThe Promised Path to Async, Awaits
25mThe Long Road to Async/Await in JavaScript
16mAsync + Await
24mWraping Time with Async/Await
22mFrom Promises through Generators to async/await in node.js
49mA Beginner's Guide to Wrangling Asynchronicity in JavaScript
42mAsync and await with JavaScript: understand and use now
