Server.AttachSessionAsync
Attaches a client to a session on this server.
Source and package
- Qualified name
-
LibTmux .Server. Attach Session Async - Namespace
- LibTmux
- Declared in
Server- Package
- LibTmux
- Source
- src/LibTmux/Server.Lifecycle.cs
- async Task AttachSessionAsync( Attach
Session request, CancellationRequest Token cancellationToken = default ) -
- Parameters
-
-
request(AttachSession ) – Attachment options naming the session.Request -
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.Server.AttachSessionAsync.
tmux command
task materialThe tmux commands behind AttachSessionAsync.
tmux C API
task materialThe C declarations in tmux that implement these commands.
In other ports
task equivalence 6 other ports mappedSource-verified mappings for Attach a client 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 Attaches a client to a session on this server. | This page |
| Python | libtmux Return $ tmux attach-session aka alias: $ tmux attach. | on Session |
| Rust | control Attach to a session in control mode. | on ControlMode |
| Go | tmux AttachSession attaches the caller's terminal to a matching session and blocks until detach or context cancellation. Nil standard streams inherit the process streams; each stream must be a concrete terminal descriptor. The call retains caller-supplied files while attached and never owns or closes them. A completed nonzero exit returns CommandError; cancellation can end waiting but does not prove that attachment or detachment did not occur. On Unix, cancellation requests a tmux disconnect before bounded forced cleanup. If the daemon cannot respond, callers may need to restore their terminal state after the call returns. | None recorded in the model |
| Java | io Attaches, then leaves unless the live server is still the process that was captured. | on ControlClient2 overloads |
| C++ | libtmux:: A command line that attaches a terminal to this session. | on Sessionreadonly |
| Raku | Lib Spawn a separately owned interactive client on the caller's explicit terminal. | Returns a separately owned attachment with an explicit lifecycle. |
No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
no direct equivalent; the client is out of scope for this port
reached through Server.connected(attachingTo:), which scopes a block rather than attaching a client
No direct public OCaml equivalent is recorded for this operation.
attach_argv builds caller-owned terminal arguments without performing attachment; the caller owns process and TTY lifetime.
No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.