The Long Road to Async/Await in JavaScript
summary
Traces a concrete evolution: synchronous -> callbacks -> promises -> generators -> async/await, with code examples showing callback hell and promise chaining, generator wiring and Co turning yields into promises, and modern async/await running on Node 8.3 with util.promisify or Bluebird polyfills to convert Node callbacks. Notes interop (async functions return promises), try/catch for awaited errors, Edge implementing async/await first, and a practical gotcha: awaiting makes independent I/O sequential unless wrapped with Promise.all.
AI-written summary · about
chapters (8)
- 0:00Intro
- 0:44Outline
- 1:28Synchronous Code
- 3:45Callbacks
- 8:38Promises
- 11:42Generators
- 15:50Phase IV
- 24:36Outro
related talks
14mThe Promised Path to Async, Awaits
33mAsync Functions Awaiting You
22mFrom Promises through Generators to async/await in node.js
32mThe Evolution Of Asynchronous Javascript
47mThere and back again Understanding Async Await
45mNext Generation Asynchronous Patterns in JavaScript
32mPromises Are So Passé
32mJavaScript 7: the Evolution of JavaScript
