~/talk

Async JS

Talkat JSConf Mexico 2020 Virtual Edition · 2020-11-02..11-04· [javascript]
links:none on file
slides:none on file

Explains how callbacks, promises, generators and async/await map to the JS runtime and shows working code with setTimeout, fetch and Promise.resolve to demonstrate ordering. Claims that promises go to the microtask queue (higher priority) while timers and DOM handlers go to the callback queue, so resolved promises run before delayed callbacks; shows a blocking synchronous loop delaying callbacks but not microtasks. Uses concrete examples and they behave as described.

AI-written summary · about

  1. 0:00Async JavaScript intro
  2. 1:29JS single-threaded model
  3. 6:52Callback problems
  4. 7:13Promises improve async
  5. 13:54Event loop queues
  6. 14:35Iterators and generators
  7. 19:53Async/await readability
  8. 22:22Summary
~/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.