# Topics

Source: https://libtmux.org/en/scala/latest/topics/

> Understand direct calls, Cats effects, client scopes, and stream delivery.

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](https://libtmux.org/en/scala/latest/concepts/) supply complete runnable examples. These
topics explain the decisions behind those programs and link to the native guides
for the detailed contracts.

- [Client and effect lifetimes](https://libtmux.org/en/scala/latest/topics/ownership/): Separate direct facade closure from borrowed Cats Resource release.
- [Effects, admission, and cancellation](https://libtmux.org/en/scala/latest/topics/execution/): Know when work runs, how it is bounded, and what cancellation proves.
- [Observations, gaps, and reconciliation](https://libtmux.org/en/scala/latest/topics/observations/): Keep FS2 demand, subscription loss, and current state distinct.
