# LibTmux.Server.WaitForAsync

- **Module:** LibTmux.Server
- **Package:** LibTmux
- **Language:** .NET
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/6656a563ec9e07ab52e0c3ac96f7704fc94cc0c0/src/LibTmux/Server.Execution.cs#L113
- **Page:** https://libtmux.org/reference/dotnet/libtmux-server-waitforasync/

```
LibTmux.Server.WaitForAsync(request: WaitForRequest, cancellationToken: CancellationToken) -> Task
```

Waits on, signals, or locks a tmux channel.

Waiting blocks until something else signals the channel, so a call that
waits does not return on its own.

## Parameters

- `request` (WaitForRequest) — Which channel, and what to do with it.
- `cancellationToken` (CancellationToken) — Cancels the tmux command.
