~/talk

Managing Async With Observables

name:Ben Lesh
github:benlesh
slides:none on file

Describes RxJS 5 as a replacement for promises with built‑in cancellation and laziness, demonstrates switchMap to abort stale AJAX calls (visible as canceled XHRs in Chrome), and shows a working multiplex WebSocket demo with automatic reconnect and replay. Benchmarked with micro and macro tests: overall operators run ~5× faster in V8 on average (≈3× on ultra‑low‑end devices), with flatMap ~10×, do ~20×, from/of ~10–17×, and switchMap ~9× faster. Also documents modular imports, recursive scheduling by default, and reduced closures for performance.

AI-written summary · about

  1. 0:00Intro
  2. 8:30Iterable
  3. 14:00Cancellation
  4. 16:49Operators
  5. 20:29Merge All
  6. 24:45Switch
  7. 33:06Performance
  8. 35:22Scheduling
  9. 36:05Recursive Scheduling
  10. 39:49Closures
  11. 41:08Performance Improvements
~/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.