Javascript Promises vs async-await
summary
Explains concrete tradeoffs: a promise has three states (pending/resolved/rejected), chaining then/catch creates a functional pipeline (example: 2 → 4 → +1 → ×4 = 20), setTimeout simulates 5–10s nonblocking delays, and catch can convert an error to data (uppercase) to resume the happy path. Asserts async is sugar over promises: async/await yields imperative-style code while still returning promises and releasing the thread during awaits.
AI-written summary · about
chapters (5)
- 0:00Introduction to async JavaScript
- 13:26Promises error handling
- 41:07Why use promises
- 59:23Async-await vs promises
- 1:00:06Q&A and closing
related talks
28mIn Many Cases, Promises May Make For A Better Pattern Than async/await
40mPromises are much better than you think
14mThe Promised Path to Async, Awaits
32mPromises Are So Passé
16mAsync + Await
33mAsync Functions Awaiting You
25mThe Long Road to Async/Await in JavaScript
45mNext Generation Asynchronous Patterns in JavaScript
