Wraping Time with Async/Await
summary
ES2017’s async/await is presented as syntactic sugar that actually works: a small Node app fetching beef free recipes app gets transformed by a codemod with jscodeshift that replaces .then with await replaces .then, hoists results into parent scope, and wraps calls in try/catch. Demo runs after transform. Notes: await pauses execution so use Promise.all for concurrency, async functions implicitly return promises, some runtimes need transpilation, and the codemod’s heuristic approach may not safely refactor every codebase.
AI-written summary · about
chapters (10)
- 0:00Start
- 4:13Anatomy of Promises
- 6:11Async Await
- 13:45Await Non Promises
- 14:08Recap
- 14:58Shared State
- 19:27Resolving a Promise with Multiple Arguments
- 19:46How Does the Async / Await Code Execute
- 20:56Ui Beginner Training
- 22:31Differentiate between Errors in the Catch
related talks
33mAsync Functions Awaiting You
25mThe 80 20 Guide to Async Await
14mThe Promised Path to Async, Awaits
16mAsync + Await
26mNow and .then: Debugging Async JS
22mFrom Promises through Generators to async/await in node.js
42mAsync and await with JavaScript: understand and use now
25mThe Long Road to Async/Await in JavaScript
