# Libtmux_eio.Operation

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

```ocaml
module Operation
```

A retained admitted command. A cancelled waiter does not erase its eventual success, failure or uncertainty.

## Members

### Other members

- [`await_stage`](/en/ocaml/latest/reference/libtmux_eio-operation-await_stage/) (function): Wait for the named stage or a terminal state. Acknowledgement does not establish completion. Cancelling this observer leaves the operation alone.
- [`cancel`](/en/ocaml/latest/reference/libtmux_eio-operation-cancel/) (function): Remove unsent work. A written request remains owned and drained by the client.
- [`cleanup_receipt`](/en/ocaml/latest/reference/libtmux_eio-operation-cleanup_receipt/) (struct): `created` retains IDs reported before a later hook or completion failure. It does not prove those resources still exist or authorize retry. When the daemon watcher retires an in-flight operation, `cause` retains {!Libtmux.Error.Disconnected}. Idle-reader failures also retain their library cause instead of becoming an explicit client-close reason.
- [`id`](/en/ocaml/latest/reference/libtmux_eio-operation-id/) (function)
- [`inspect`](/en/ocaml/latest/reference/libtmux_eio-operation-inspect/) (function): Read without I/O, including after client closure. Owning domain only.
- [`state`](/en/ocaml/latest/reference/libtmux_eio-operation-state/) (enum)
- [`t`](/en/ocaml/latest/reference/libtmux_eio-operation-t/) (typealias)
