# LibTmux.Pane.RespawnAsync

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

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

```
LibTmux.Pane.RespawnAsync(request: RespawnRequest?, cancellationToken: CancellationToken) -> Task
```

Restarts the command running in this pane.

tmux refuses to respawn a pane that is still running unless the request
kills it first.

## Parameters

- `request` (`RespawnRequest?`): What to respawn, or null to reuse the original.
- `cancellationToken` (`CancellationToken`): Cancels the tmux command.
