# Libtmux_unix.Operation

- **Package:** libtmux-unix
- **Language:** OCaml
- **Kind:** module
- **Source:** https://github.com/libtmux/libtmux-ocaml/blob/205dfda49742592b479247049d186956e4a4cfe9/unix/libtmux_unix.mli#L116
- **Public owner:** Libtmux_unix
- **Page:** https://libtmux.org/en/ocaml/latest/reference/libtmux_unix-operation/

```ocaml
module Operation
```

Retained outcomes remain inspectable after client closure, on the owning domain. Keep the handle from [`Client.submit`](/en/ocaml/latest/reference/libtmux_unix-client-submit/) before [`Client.await`](/en/ocaml/latest/reference/libtmux_unix-client-await/), then read [`Operation.inspect`](/en/ocaml/latest/reference/libtmux_unix-operation-inspect/). The [hook recovery walkthrough](https://github.com/libtmux/libtmux-ocaml/blob/master/docs/hook-recovery.md) shows creation evidence after a later hook failure.

## Members

### Other members

- [`cancel`](/en/ocaml/latest/reference/libtmux_unix-operation-cancel/) (function): Remove queued work before it is written. Admitted commands retain their owner and are drained by {!Client.await}; cancellation does not undo effects. Returns `Busy` while another blocking caller owns the client; use a {!Cancellation.t} token to interrupt that caller.
- [`cleanup_receipt`](/en/ocaml/latest/reference/libtmux_unix-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.
- [`id`](/en/ocaml/latest/reference/libtmux_unix-operation-id/) (function)
- [`inspect`](/en/ocaml/latest/reference/libtmux_unix-operation-inspect/) (function): No I/O. Results remain inspectable after client closure, on the owning domain.
- [`state`](/en/ocaml/latest/reference/libtmux_unix-operation-state/) (enum)
- [`t`](/en/ocaml/latest/reference/libtmux_unix-operation-t/) (typealias)
