Core Library0.xAPI reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

method libtmux-dotnet

Session.KillAsync

Stops this session.

Source and package
Qualified name
LibTmux.Session.KillAsync
Namespace
LibTmux
Declared in
Session
Package
LibTmux
Source
src/LibTmux/Session.Lifecycle.cs
Task KillAsync( bool allExcept = 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 calls
No call edges in the C# model.

The 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 material

The tmux commands behind KillAsync.

tmux C API

task material

The C declarations in tmux that implement these commands.

In other ports

task equivalence 13 other ports mapped

Source-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.

End a session in each port
PortAPIDiffers from C#
C# LibTmux.Session.KillAsync
Stops this session.
This page
Python libtmux.Session.kill
Kill Session, closes linked windows and detach all clients.
None recorded in the model
Ruby LibTmux::Session#kill
Both allowlists are required for guarded deletion of a changing topology.
None recorded in the model
Lua libtmux.Session:kill None recorded in the model
Erlang tmux_session:kill/1
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.Session.kill
Destroy this session.
None recorded in the model
Rust session.Session.kill
Kill the session.
async
Go tmux.Session.Kill
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.github.libtmux.Session.kill
Ends this session. Every window in it goes with it.
None recorded in the model
C++ libtmux::Session::kill readonly
Swift Server.kill(_:) asyncon Server3 overloads
OCaml Libtmux_unix.Client.kill_session
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 LibTmux::Server::kill_session
kill_session(session => Session|session_id).
on Server
Explicit Server operation. Captured entities remain local observations; use a new snapshot to observe changes.
Raku LibTmux::Model::SessionRef.kill
Destroy the addressed entity; retained observations remain unchanged.
on SessionRef
No Haskell equivalent.

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#.

Esc
Search in

Type to search.

Reference previewOpen reference