~/lightning

600 Seconds on async_hooks

LightninginRussianat JavaScript fwdays'18 · on Sunday, 2018-03-18· [nodejs]

Covers Node.js async_hooks API: its callbacks (init, before, after, destroy, promiseResolve), provided identifiers (id, type, triggerAsyncId) and raw resource objects for tracking async work lifetime and parentage. Describes pitfalls (id reuse, keeping references that prevent destroy and GC delays, console/logging causing recursive async events) and practical uses such as precise logging, hung-promise detection, timing, and building continuation-local-storage–like functionality.

AI-written summary · about

  1. 0:00async_hooks in Node.js
  2. 1:05Async issues in JS
  3. 2:31Evolution of async_hooks
  4. 3:56What async_hooks are
  5. 5:21How async_hooks work
  6. 6:46async_hooks pitfalls
  7. 8:36GC and implementation
  8. 10:27Practical uses
  9. 11:52Conclusion & Q&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.