Session.KillAsync
Stops this session.
Source and package
- Qualified name
-
LibTmux .Session. Kill Async - Namespace
- LibTmux
- Declared in
Session- Package
- LibTmux
- Source
- src/LibTmux/Session.Lifecycle.cs
- Task KillAsync( bool all
Except = false, bool clearAlerts = false, bool group = false, CancellationToken cancellationToken = default ) -
Description
Group stopping arrived in tmux 3.7. Older servers reject the flag and stop nothing at all, so against those the request is logged and the flag omitted: this session still dies, its group siblings do not.
- Parameters
-
-
allExcept(bool) – Whether every other session is stopped instead of this one.Default
false -
clearAlerts(bool) – Whether alerts are cleared in every window instead.Default
false -
group(bool) – Whether every session in this session's group is stopped.Default
false -
cancellationToken(CancellationToken ) – Cancels the tmux command.Default
default
-
Recorded calls
source callsThe C# reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls LibTmux.Session.KillAsync.
tmux command
task materialThe tmux commands behind KillAsync.
tmux C API
task materialThe C declarations in tmux that implement these commands.
In other ports
task equivalence 13 other ports mappedSource-verified mappings for End a session. A mapping says these APIs perform the same task. It does not say they share defaults, errors or completion: check each page.
| Port | API | Differs from C# |
|---|---|---|
| C# | Lib Stops this session. | This page |
| Python | libtmux Kill Session, closes linked windows and detach all clients. | None recorded in the model |
| Ruby | Lib Both allowlists are required for guarded deletion of a changing topology. | None recorded in the model |
| Lua | libtmux | None recorded in the model |
| Erlang | tmux Destroy this registered session. Performs I/O and returns the command result; this is a destructive session action, not endpoint cleanup. References must belong to a live registered owner. | free function |
| TypeScript | session Destroy this session. | None recorded in the model |
| Rust | session Kill the session. | async |
| Go | tmux Kill destroys the receiver session and removes its winlinks. Ordinary attached clients detach; on tmux 3.6 or later, clients carrying no-detach-on-destroy move to another session when one exists. A window with no remaining links and all of that window's panes are also destroyed. The materialized receiver is not refreshed. Only stderr makes a completed command a CommandError; nonzero exits without stderr are ignored. Transport errors are delivery-ambiguous. Kill is equivalent to Session.KillWith with a zero SessionKillRequest. | None recorded in the model |
| Java | io Ends this session. Every window in it goes with it. | None recorded in the model |
| C++ | libtmux:: | readonly |
| Swift | Server | asyncon Server3 overloads |
| OCaml | Libtmux Remove the session and its window links. Windows with no other links and their panes are destroyed. Removing the last session may stop tmux. | free function |
| Perl | Lib kill_session(session => Session|session_id). | on Server Explicit Server operation. Captured entities remain local observations; use a new snapshot to observe changes. |
| Raku | Lib Destroy the addressed entity; retained observations remain unchanged. | on SessionRef |
No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
No equivalent is recorded in PowerShell, Julia, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.