~/talk

Promises are much better than you think

Talkat WebExpo 2022 · 2022-06-10..06-12· [javascript]
slides:none on file

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

  1. 0:00Start
  2. 3:30The Error Object
  3. 5:19Callbacks
  4. 8:58Async Await Code
  5. 14:25Promise Race
  6. 20:33How Promises Work
  7. 21:41Error Handling
  8. 24:54Chaining
  9. 32:18Split Function
  10. 36:59Async Await Syntax
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.