Topics
Client and effect lifetimes
Separate direct facade closure from borrowed Cats Resource release.
Effects, admission, and cancellation
Know when work runs, how it is bounded, and what cancellation proves.
Observations, gaps, and reconciliation
Keep FS2 demand, subscription loss, and current state distinct.
Scala offers direct operations over Java handles and effect-scoped operations through its companion modules. Choose the execution and ownership model together: constructing an effect, evaluating it, and reading captured state have different consequences.
The concept programs supply complete runnable examples. These topics explain the decisions behind those programs and link to the native guides for the detailed contracts.