# LibTmux.Pane.SelectAsync

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Pane.Topology.cs#L386
- **Page:** https://libtmux.org/en/csharp/latest/reference/libtmux-pane-selectasync/

tmux command: [`select-pane`](/en/tmux/latest/manual/select-pane/)

```
LibTmux.Pane.SelectAsync(request: SelectPaneRequest?, cancellationToken: CancellationToken) -> Task<Pane>
```

Selects this pane.

## Parameters

- `request` (`SelectPaneRequest?`): How to select it.
- `cancellationToken` (`CancellationToken`): Cancels the tmux command.

## Returns

A replacement handle carrying the state afterwards.
