# LibTmux.Pane.SwapAsync

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

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

```
LibTmux.Pane.SwapAsync(request: SwapPaneRequest, cancellationToken: CancellationToken) -> Task
```

Swaps this pane with another.

## Parameters

- `request` (`SwapPaneRequest`): Which pane to swap with.
- `cancellationToken` (`CancellationToken`): Cancels the tmux command.
