# LibTmux.TmuxWait

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/320dc64f4b8b7815842471327a5e6b84a1499bf8/src/LibTmux/Waiting/TmuxWait.cs#L13
- **Page:** https://libtmux.org/en/dotnet/latest/reference/libtmux-tmuxwait/

Waits for tmux to reach a state instead of sleeping.

tmux answers a command as soon as it has accepted it, not once the effect
has landed, so code that acts and then reads immediately is racing the
server. A fixed delay only hides that on an idle machine; waiting for the
state itself is what makes the read say what it means. This is ordinary
client work, not test scaffolding: reading back what a command produced is
the common case, so it ships in the client rather than in
<c>LibTmux.Testing</c>.

## Members

- `UntilAsync` (method): Waits until a probe reports the state was reached.
