Promises are much better than you think
summary
Argues that Promises outperform Async/Await for many real problems and demonstrates the claim with concrete code: uses Promise.all, Promise.any and allSettled and race to run tasks in parallel, pick the first success, gather every result, or timeout slow requests, shows how async/await serializes loops while Promises enable controlled concurrency, and builds a tiny promiselike “something/nothing” implementation with split flip stitch and getUser that reproduces chaining and error propagation so the example works end to end.
AI-written summary · about
chapters (10)
- 0:00Start
- 3:30The Error Object
- 5:19Callbacks
- 8:58Async Await Code
- 14:25Promise Race
- 20:33How Promises Work
- 21:41Error Handling
- 24:54Chaining
- 32:18Split Function
- 36:59Async Await Syntax
related talks
28mIn Many Cases, Promises May Make For A Better Pattern Than async/await
04mA Promise is a Promise
01h 00mJavascript Promises vs async-await
45mPromises — It Doesn't Have to Hurt
33mAsync Functions Awaiting You
49mA Beginner's Guide to Wrangling Asynchronicity in JavaScript
34mBroken Promises
32mPromises Are So Passé
