~/talk

Concurrency with Cats-effect

Talkat Scale By The Bay 2018 · 2018-11-15..11-17· [scala, concurrency]
slides:none on file

Cats Effect 1.0 provides fiber-based concurrency and synchronization primitives and shows concrete implementations: a correct parTuple2 that uses bracket to avoid leaking fibers, a debounce combinator that stores cancellation tokens in a Ref and cancels prior fibers, and an unbounded queue built from Ref and Deferred that needed a bracket-based cleanup to fix a timeout memory leak. FS2 and other libraries use these primitives; examples and working code demonstrate the fixes and patterns.

AI-written summary · about

  1. 0:00Introduction and background
  2. 2:21Polymorphic resource management
  3. 3:46Concurrent type class explained
  4. 8:41Fixing parallel execution leaks
  5. 12:11Refs for shared state
  6. 15:21Debouncing events with Refs
  7. 22:30Deferred values and queues
  8. 29:43Cancellation and memory leaks
  9. 32:53Future of Cats Effect
~/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.