~/talk

A Beginner's Guide to Wrangling Asynchronicity in JavaScript

Talkat Connect.Tech 2021 · 2021-11-08..11-10· [javascript]
slides:none on file

Shows how to turn callback-style code into real promises by wrapping older APIs (example: a geolocation wrapper that calls resolve/reject), demos with a 2s setTimeout to simulate async, and use of fetch for Star Wars data. Covers Promise utilities like Promise.all vs allSettled/any/race, explains the gotcha that await only works inside async functions, and recommends plain for-loops for async iteration. Example code lives on GitHub/CodePen and the patterns demonstrated work end-to-end.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 3:53The problem with async code
  3. 7:02Callbacks and their limitations
  4. 14:24Introducing Promises
  5. 23:47Creating custom Promises
  6. 27:22Wrapping legacy APIs with Promises
  7. 31:52Promise methods like all and race
  8. 35:06Async/await introduction
  9. 41:25Async/await in practice
  10. 46:03Tips and resources for async JavaScript
  11. 48:13Q&A
~/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.