# LibTmux.Session.SwitchClientAsync

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

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

Switches the current client to this session.

## Parameters

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

## Returns

A replacement handle carrying the state after the switch.
