~/talk

Composable concurrency with Ref + Deferred

slides:none on file

fs2 builds concurrency from two primitives: Ref.modify as an atomic CAS-based state transition that returns a result (so you can queue an effect to run after the state change), and Deferred one-shot for semantically blocking waits. The talk shows a concrete cache with single‑flight fetch that uses Ref+Deferred so concurrent gets deduplicate work and expire values, explains the CAS retry tradeoffs and shows interruption is tricky — solved by using guarantee to restore state and completing stuck waiters.

AI-written summary · about

  1. 0:00Intro
  2. 1:15History
  3. 1:57Ref
  4. 5:00Race Condition
  5. 6:50Updates
  6. 10:26Deferred API
  7. 13:56What if it fails
  8. 16:42Why this way
  9. 18:26Modify
  10. 20:24Cache
  11. 21:58State
  12. 25:38Fetch
  13. 27:42Interrupt
  14. 29:22Restore State
  15. 31:20Guarantee State
  16. 33:38Questions
~/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.