~/talk

Modern Event Handling: A Peek at the New Observable API

Talkat CascadiaJS 2024 · 2024-06-19..06-22· [web-platform, javascript]
slides:none on file

Browsers are getting a native Observable primitive that replaces nested addEventListener usage with a composable stream handle: an Observable API that adds an on method to EventTarget to return synchronous, lazy, multicast event streams. Operators like filter, map, flatMap, take transform streams, simplify the Konami-code example, and automatically teardown producers (via take or AbortController wiring). There’s an experimental Chrome implementation behind a flag so examples run locally, and the spec leans on TC39 iterator helpers and input from rxjs maintainers.

AI-written summary · about

  1. 0:00Introduction
  2. 1:35Meet the speaker
  3. 2:38Async on the web
  4. 8:15What is an observable
  5. 12:26Observable under the hood
  6. 18:02Observable operators
  7. 23:01Resource disposal
  8. 25:27Call to action
~/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.