# tmux_operation:status/1

- **Package:** libtmux_erlang
- **Language:** Erlang
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-erlang/blob/d1b6308440cf9eb8f6647e7ae434bce60e849368/apps/libtmux_erlang/src/tmux_operation.erl#L106
- **Page:** https://libtmux.org/en/erlang/latest/reference/tmux_operation-status-1/

```
status(Operation)
-spec status(t()) -> {ok, state()} | {error, failure()}.
```

Read the retained lifecycle state without starting a tmux command. Expired handles return operation_expired. Status is observation of the operation, not evidence that a possibly sent mutation was cancelled.

## Parameters

- `Operation` (`t()`)

## Guides

Pages that discuss `status/1`.

### Guides

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

### Topics

- [Diagnostics](/en/erlang/latest/topics/diagnostics/)
