Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

LibTmux.Server.WaitForAsync

.NET

View as Markdown

Module
LibTmux
Declared in
Server
Package
LibTmux
Source
src/LibTmux/Server.Execution.cs
Other languages
PythonRuby Lua TypeScript RustGo Java C++Swift
WaitForAsync ( request : WaitForRequest , cancellationToken : CancellationToken ) → Task
method [source]
method [source]
WaitForAsync

Waits on, signals, locks, or unlocks a tmux channel.

Waiting blocks until something else signals the channel, so a call that waits does not return on its own.

Parameters
  • request ( WaitForRequest ) – Which channel, and what to do with it.

  • cancellationToken ( CancellationToken ) – Cancels waiting for tmux's reply. For Wait this kills the client while tmux keeps its queue entry, eating the next real signal — prefer OpenWaitChannel whenever a Wait needs a deadline. For Lock cancelling never kills the client, since tmux hands a released lock to whichever queued client is still alive: the client keeps running, and a lock it goes on to acquire is released again automatically once this call has already given up on it.

In other ports Wait for, signal or lock a channel

0 declared, 0 inherited

Esc

Type to search.