~/talk

The 80 20 Guide to Async Await

Talkat UtahJS Conf 2017 · on Wednesday, 2017-09-27· [javascript]
links:none on file
slides:none on file

Covers concrete ES2017 async/await behavior with runnable examples on node 7.6+ and Node 8, showing fetch/node-fetch to hit httpbin.org/ip and an fs-wrapped Promise that prints its own source. Demonstrates that awaiting pauses the async function but does not block the event loop (examples that print “2 1 3” versus “1 2 3”), contrasts sequential for-loops with the broken forEach pattern, explains try/catch vs top-level .catch, shows Express needs a wrapper while Mocha already supports async functions.

AI-written summary · about

  1. 0:00Introduction
  2. 8:20Promise of Lying
  3. 12:10Event Loop
  4. 15:30For Each
  5. 16:35Fibonacci
  6. 19:57Error Handling
  7. 20:35Integrate with Existing Libraries
  8. 23:17Summary
~/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.