# LibTmux.Pane.BreakAsync

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

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

```
LibTmux.Pane.BreakAsync(windowName: string?, detach: bool, cancellationToken: CancellationToken) -> Task<Window>
```

Moves this pane out into a window of its own.

## Parameters

- `windowName` (`string?`): The new window's name.
- `detach` (`bool`): Whether the new window is left unselected.
- `cancellationToken` (`CancellationToken`): Cancels the tmux commands.

## Returns

The window the pane now lives in.
