Session.FromEnvironmentAsync
Returns the session holding the pane this process runs in.
Source and package
- Qualified name
-
LibTmux .Session. From Environment Async - Namespace
- LibTmux
- Declared in
Session- Package
- LibTmux
- Source
- src/LibTmux/Session.FromEnvironment.cs
- static async Task<Session> FromEnvironmentAsync( IRead
Only <string, string>? environment = null, CancellationDictionary Token cancellationToken = default ) -
Description
Resolved through the pane rather than through the session id in
TMUX. That id is frozen at pane spawn, so it names the wrong session once the pane's window is moved or linked elsewhere.- Parameters
-
-
environment(IReadOnly <string, string>?) – The environment, or null for the process.Dictionary Default
null -
cancellationToken(CancellationToken ) – Cancels the tmux commands.Default
default
-
- Returns
-
The resolved session.
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.FromEnvironmentAsync.
Guides
task materialPages that discuss FromEnvironmentAsync.
In other ports
task equivalence 3 other ports mappedSource-verified mappings for The session this process is running inside. 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 Returns the session holding the pane this process runs in. | This page |
| Python | libtmux Return the session this process's pane belongs to. | None recorded in the model |
| TypeScript | session Resolve the session this process is running inside. | None recorded in the model |
| Rust | session Find the session this process is running in. | None recorded in the model |
No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing.
no equivalent on Session
no equivalent on Session
no equivalent on Session
no equivalent on Session
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.
Session targeting is explicit and incarnation-bound.
No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Erlang, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.