Client.GetAttachedSessionAsync
Reads the session this client is attached to now.
Source and package
- Qualified name
-
LibTmux .Client. Get Attached Session Async - Namespace
- LibTmux
- Declared in
Client- Package
- LibTmux
- Source
- src/LibTmux/Client.Administration.cs
- async Task<Session?> GetAttachedSessionAsync( Cancellation
Token cancellationToken = default ) -
- Parameters
-
-
cancellationToken(CancellationToken ) – Cancels the tmux commands.Default
default
-
- Returns
-
The session, or null when the client is attached to none.
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.Client.GetAttachedSessionAsync.
tmux command
task materialThe tmux commands behind GetAttachedSessionAsync.
tmux C API
task materialThe C declarations in tmux that implement these commands.
In other ports
task equivalence 12 other ports mappedSource-verified mappings for The session a client is attached to. 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 Reads the session this client is attached to now. | This page |
| Ruby | Lib Behavior: Captured records. | on ClientSnapshot |
| Lua | libtmux | None recorded in the model |
| TypeScript | client The session this client is attached to, if it is still attached. | None recorded in the model |
| Rust | client The session this client is attached to. | None recorded in the model |
| Go | tmux AttachedSession returns the materialized attached session, if present in the same snapshot. It never queries tmux. | None recorded in the model |
| Java | io The session this client was attached to when captured. A pure read of the capture. | None recorded in the model |
| Kotlin | io The session this client was attached to when captured. A pure read of the capture. | None recorded in the model |
| Scala | io The session this client was attached to, if any. | 2 overloads |
| C++ | libtmux:: | readonly |
| OCaml | Libtmux None means the captured client has no attached session. | free function Returns the captured session when the attached client had one. |
| Perl | Lib LibTmux::Session entity or undef. Local captured data; no I/O. | Captured nullable relation; unloaded data remains an error. |
| Raku | Lib The observed associated session, resolved without I/O. | None recorded in the model |
client_session is a session name, not a Session object
No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
the relationship is resolved through Snapshot.session(of:)
No equivalent is recorded in PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure or F#.