Session.DetachClientAsync
Detaches every client attached to this session.
Source and package
- Qualified name
-
LibTmux .Session. Detach Client Async - Namespace
- LibTmux
- Declared in
Session- Package
- LibTmux
- Source
- src/LibTmux/Session.Lifecycle.cs
- Task DetachClientAsync( string? shell
Command = null, CancellationToken cancellationToken = default ) -
Description
The session scope is always sent, because
-sis the onlydetach-clientflag group that names a session rather than a client.- Parameters
-
-
shellCommand(string?) – A command the detached clients run, when any.Default
null -
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.DetachClientAsync.
tmux command
task materialThe tmux commands behind DetachClientAsync.
tmux C API
task materialThe C declarations in tmux that implement these commands.
In other ports
task equivalence 8 other ports mappedSource-verified mappings for Detach every client attached to 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 Detaches every client attached to this session. | This page |
| Python | libtmux Detach every client attached to this session. | None recorded in the model |
| TypeScript | session Detach every client attached to this session. | None recorded in the model |
| Rust | session Detach every client attached to this session. | async |
| Go | tmux DetachClients detaches every client attached to the session identified by this handle's stable ID. A nonnil ShellCommand is run after detaching. | None recorded in the model |
| Java | io Detaches every client attached to this session, leaving the session running. | None recorded in the model |
| C++ | libtmux:: Send every client here away, leaving the session running. | readonly |
| Swift | Server Detaches every client attached to a session. | asyncon Server |
| Raku | Lib Request detachment of clients in this session; acknowledgement is not client exit. | on SessionRef |
No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
No direct public OCaml equivalent is recorded for this operation.
No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands.
No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.