Async Functions Awaiting You
summary
Argues that ES2017 async/await is a native replacement for generator-based co‑routines and library patterns (co Bluebird redux‑saga), demonstrates sequential code versus parallel with Promise.all and aggregates like Promise.race / any / some, shows that async functions always return a Promise, exposes a practical pitfall where forEach can't await (nested callbacks don’t pause, need serial reduce), presents async iteration and for await...of (stage‑3) and notes the controversial usefulness and danger of top‑level await food gun.
AI-written summary · about
chapters (9)
- 0:00Start
- 7:25Parallel Processing
- 11:36Generators vs run to completion
- 18:45Sequential Processing op1
- 24:04Pipeline scope
- 24:24No nested functions
- 28:12Async Arrow Functions
- 29:36Async Iteration stage 3 proposal
- 32:44Top-level await
related talks
25mThe Long Road to Async/Await in JavaScript
45mNext Generation Asynchronous Patterns in JavaScript
32mPromises Are So Passé
31mPromises and Generators: control flow utopia
33mAsync Programming in ES7
14mThe Promised Path to Async, Awaits
32mJavaScript 7: the Evolution of JavaScript
25mThe 80 20 Guide to Async Await
