~/talk

Javascript Promises vs async-await

Talkat Developers Summit 2021 · 2021-02-18..02-19· [javascript]
slides:none on file

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

  1. 0:00Introduction to async JavaScript
  2. 13:26Promises error handling
  3. 41:07Why use promises
  4. 59:23Async-await vs promises
  5. 1:00:06Q&A and closing
~/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.