# LibTmux.Session.SelectNextWindowAsync

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Session.Lifecycle.cs#L159
- **Page:** https://libtmux.org/en/csharp/latest/reference/libtmux-session-selectnextwindowasync/

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

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

Selects the next window.

## Parameters

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

## Returns

The window that is active afterwards.
