# LibTmux.Testing.TmuxWait

- **Module:** LibTmux.Testing
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** class
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/6656a563ec9e07ab52e0c3ac96f7704fc94cc0c0/src/LibTmux/Testing/TmuxWait.cs#L10
- **Page:** https://libtmux.org/reference/dotnet/libtmux-testing-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 a test 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 test say what it means.

## Members

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