~/talk

Promises Are So Passé

Talkat Codemotion Milan 2016 · 2016-11-23..11-26· [javascript, web-platform]
slides:none on file

Promises ease callback pain but still force awkward scope and ceremony; this session shows how generators + promises get glued with a spawn glue function to let code pause and resume, then explains how async/await in ES2017 builds that behavior into the language. Demo code translates nested callbacks and promise chains into synchronous-looking ifs, loops and try/catch, covers error-handling and parallelism pitfalls, and lists real-world support (Chrome, Edge, Firefox, Babel/TypeScript transpilation).

AI-written summary · about

  1. 0:00Introduction and context
  2. 3:55Challenges of async JavaScript
  3. 9:33Promises in ES6
  4. 16:35Problems with promises
  5. 20:26Generators and promises
  6. 23:55Async/await introduction
  7. 27:25Async/await in practice
  8. 29:53Browser support and tools
  9. 31:17Conclusion and benefits
~/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.