~/talk

CATS EFFECT - DISPATCHER, SUPERVISOR, IOLOCAL

Talkat Scalar Conference 2023 · 2023-03-23..03-24· [concurrency, scala]
links:none on file
slides:none on file

Three concrete recipes use Cats Effect 3 primitives to solve real problems: building a resource-safe websocket client by supervising a background consumer so it is canceled on scope exit, translating a callback API into an FS2 stream using a Sequential Dispatcher preserves ordering (and is faster and safer than unsafeRunSync), and thread-local style contextual logging via IOLocal where forked fibers inherit but do not propagate changes back to parents. Examples compile and run; CE3 3.4 contains recent updates.

AI-written summary · about

  1. 0:00Start
  2. 3:48Cats Effect Recipes
  3. 4:33Web Socket client
  4. 5:24fs2 Stream from callbacks
  5. 9:01Threads vs Fibers
  6. 13:02Fibers are low-level
  7. 14:01Structured Concurrency
  8. 16:45Creating a Supervisor
  9. 30:26Closing remarks
~/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.