Session.GetWindowAsync
Reads one window in this session, throwing when it is absent.
Source and package
- Qualified name
-
LibTmux .Session. Get Window Async - Namespace
- LibTmux
- Declared in
Session- Package
- LibTmux
- Source
- src/LibTmux/Session.Relations.cs
- async Task<Window> GetWindowAsync( Window
Id id, CancellationToken cancellationToken = default )async Task<Window> GetWindowAsync( string target, CancellationToken cancellationToken = default ) -
- Parameters
-
-
id(WindowId ) – The window identifier. forGetWindowAsync(id, cancellationToken) -
cancellationToken(CancellationToken ) – Cancels the tmux command.Default
default -
target(string) – The window identifier or name. forGetWindowAsync(target, cancellationToken)
-
- Returns
-
The materialized window in this session.
- Errors
-
-
Tmux
Object – This session has no matching window.Not Found Exception -
Lib
Tmux – The lookup failed.Exception
-
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.GetWindowAsync.
tmux command
task materialThe tmux commands behind GetWindowAsync.
list-windows -t session scope, cmd_list_windows_exec tmux C API
task materialThe C declarations in tmux that implement these commands.