# LibTmux.Window.SelectAsync

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Window.Lifecycle.cs#L41
- **Page:** https://libtmux.org/en/csharp/latest/reference/libtmux-window-selectasync/

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

```
LibTmux.Window.SelectAsync(cancellationToken: CancellationToken) -> Task<Window>
```

Selects this window in its session.

## Parameters

- `cancellationToken` (`CancellationToken`): Cancels the tmux command.

## Returns

A replacement handle carrying the state after selection.
