~/talk

Wraping Time with Async/Await

Talkat JSHeroes 2017 · on Thursday, 2017-06-08· [javascript, nodejs]
name:Cassi Lup
links:none on file
slides:none on file

ES2017’s async/await is presented as syntactic sugar that actually works: a small Node app fetching beef free recipes app gets transformed by a codemod with jscodeshift that replaces .then with await replaces .then, hoists results into parent scope, and wraps calls in try/catch. Demo runs after transform. Notes: await pauses execution so use Promise.all for concurrency, async functions implicitly return promises, some runtimes need transpilation, and the codemod’s heuristic approach may not safely refactor every codebase.

AI-written summary · about

  1. 0:00Start
  2. 4:13Anatomy of Promises
  3. 6:11Async Await
  4. 13:45Await Non Promises
  5. 14:08Recap
  6. 14:58Shared State
  7. 19:27Resolving a Promise with Multiple Arguments
  8. 19:46How Does the Async / Await Code Execute
  9. 20:56Ui Beginner Training
  10. 22:31Differentiate between Errors in the Catch
~/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.