# tmux_operation:await_started/2

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

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

Wait until the operation leaves queued, returning its lifecycle state even if it has already failed or retired. Inspect outcome and cleanup; call `await/2` for final command data. Authorization is not proof of a tmux aftereffect. A timeout abandons this wait without cancelling the operation.

## Parameters

- `Operation` (`t()`)
- `Timeout` (`timeout()`)
