# tmux_operation:state/0

- **Package:** libtmux_erlang
- **Language:** Erlang
- **Kind:** typealias
- **Source:** https://github.com/libtmux/libtmux-erlang/blob/d1b6308440cf9eb8f6647e7ae434bce60e849368/apps/libtmux_erlang/src/tmux_operation.erl#L66
- **Page:** https://libtmux.org/en/erlang/latest/reference/t-tmux_operation-state-0/

```
-type state() ::
          #{phase := queued | sent | responded | retired,
            stage :=
                pending | waiting | preflight | command,
            owner := pid(),
            outcome := pending | outcome(),
            cleanup := pending | cleanup()}.
```

Observed lifecycle state, without command output. queued includes admission and identity preflight; sent means dispatch authorization, not a proven aftereffect. responded can retain incomplete cleanup; retired releases operation resources. pending certainty means no result yet. The owner is the initiating or transferred process; holding a waiter handle does not change it.

## Guides

Pages that discuss `state/0`.

- [Owned operations](/en/erlang/latest/guides/operations/)
