Core Library0.xAPI reference

Choose documentation 3

latest

Current version

latest
English

Early release libtmux is released, and its APIs may still change between releases. This site's structure and URLs may change too.

MoreLess about this notice

class libtmux-dotnet

TmuxWaitChannel

An open wait on a tmux wait-for channel.

Source and package
Qualified name
LibTmux.TmuxWaitChannel
Namespace
LibTmux
Package
LibTmux
Source
src/LibTmux/Waiting/TmuxWaitChannel.cs
class LibTmux.TmuxWaitChannel

Description

tmux gives a signal to whoever is registered on the channel and raises the channel's pending flag only when nobody is. A waiter whose client dies stays registered — tmux clears waiters when the server exits and at no other time — so it goes on eating signals that can no longer reach anybody. Killing a waiting client to enforce a timeout therefore destroys the next signal, and each timed-out retry leaves another corpse to destroy the one after that.

WaitAsync() returning false means that attempt expired without observing completion. The open wait remains owned and may already have completed from a racing signal. Closing attempts withdrawal before ending the local client; failed withdrawal leaves remote registration unknown.

Properties2

TmuxWaitChannel properties
NameTypeDescription
Channel string Gets the channel being waited on.
Signalled bool Gets whether the wait completed before withdrawal began.

Members3 members

Common operations1

  • WaitAsync Waits for the signal, giving this attempt a budget.

Other members2

  • CloseAsync Withdraws the waiter and ends its owned client lifetime.
  • DisposeAsync Withdraws the waiter from tmux.

Guides

task material

Pages that discuss TmuxWaitChannel.

Esc
Search in

Type to search.

Reference previewOpen reference