# LibTmux.Server.KillAsync

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Server.Lifecycle.cs#L66
- **Page:** https://libtmux.org/en/csharp/latest/reference/libtmux-server-killasync/

tmux command: [`kill-server`](/en/tmux/latest/manual/kill-server/)

```
LibTmux.Server.KillAsync(cancellationToken: CancellationToken) -> Task
```

Stops the tmux server.

A server that is already gone is the requested outcome, so an absent
daemon succeeds rather than failing.

## Parameters

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