LibTmux.Server.GetSessionAsync
- Module
- LibTmux
- Declared in
- Server
- Package
- LibTmux
- Source
- src/LibTmux/Server.Identity.cs
- Other languages
- Python Ruby Lua TypeScript RustGo Java C++ Swift
- GetSessionAsync ( id : SessionId , cancellationToken : CancellationToken ) Task<Session>
-
Reads one session by identifier, throwing when it is absent.
A handle that has not found a live server yet discovers one first.
- Parameters
-
-
id ( SessionId ) – The session identifier.
-
cancellationToken ( CancellationToken ) – Cancels the tmux command.
-
- Returns
-
A materialized session carrying captured scalar state.
- Raises
-
-
TmuxObjectNotFoundException – The session does not exist.
-
LibTmuxException – The lookup failed, including an absent daemon.
-
In other ports Look one session up by target
- Python no equivalent on
Server - Ruby
LibTmux::Server#session - Lua No source-verified Lua equivalent is recorded for this operation.
- TypeScript no equivalent on
Server - Rust
server.Server.session - Go
tmux.Server.Session - Java no equivalent on
Server - C++
libtmux::Server::session - Swift no equivalent on
Server
0 declared, 0 inherited