# Libtmux_eio

- **Package:** libtmux-eio
- **Language:** OCaml
- **Kind:** module
- **Source:** https://github.com/libtmux/libtmux-ocaml/blob/205dfda49742592b479247049d186956e4a4cfe9/eio/libtmux_eio.mli#L1
- **Page:** https://libtmux.org/en/ocaml/latest/reference/libtmux_eio/

```ocaml
module Libtmux_eio
```

Concurrent Linux tmux clients using the application's Eio scheduler.

Client methods perform I/O unless documented otherwise. Captured [`Libtmux.Snapshot`](/en/ocaml/latest/reference/libtmux-snapshot/) observations and retained [`Operation.inspect`](/en/ocaml/latest/reference/libtmux_eio-operation-inspect/) remain local. Clients belong to the connecting domain. Closure releases their owned resources; tmux applies its configured daemon lifetime.

See [`Client`](/en/ocaml/latest/reference/libtmux_eio-client/) for acquisition and commands, [`Operation`](/en/ocaml/latest/reference/libtmux_eio-operation/) for cancellation outcomes, and [`Subscription`](/en/ocaml/latest/reference/libtmux_eio-subscription/) for bounded future output. The [streaming guide](https://github.com/libtmux/libtmux-ocaml/blob/master/docs/streaming.md) demonstrates application-owned switches, cancellation and continuity gaps.

## Members

### Common operations

- [`Client`](/en/ocaml/latest/reference/libtmux_eio-client/) (module): An explicit generation-bound connection. Applications retain ownership of the endpoint choice and resource lifetime.
- [`Workspace`](/en/ocaml/latest/workspace/reference/libtmux_eio-workspace/) (module): Apply workspace plans through Eio while retaining journals across caller cancellation. Handles belong to the creating domain; the application owns the scheduler and switch.

### Other members

- [`Cleanup`](/en/ocaml/latest/reference/libtmux_eio-cleanup/) (module): Domain-owned cleanup diagnostics shared with the blocking backend. Supply a report before setup to inspect secondary failures after native cancellation. No scheduler is needed to inspect a report.
- [`Operation`](/en/ocaml/latest/reference/libtmux_eio-operation/) (module): A retained admitted command. A cancelled waiter does not erase its eventual success, failure or uncertainty.
- [`Rendered`](/en/ocaml/latest/reference/libtmux_eio-rendered/) (module)
- [`Subscription`](/en/ocaml/latest/reference/libtmux_eio-subscription/) (module): Bounded future-byte observation with Data/Gap/End and local cursors. Polling is local; waiting and admission belong to the backend.
- [`Terminal`](/en/ocaml/latest/reference/libtmux_eio-terminal/) (module): Interactive attachment using borrowed application streams. This utility addresses the current daemon explicitly and does not reuse captured targets.
