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

LibTmux.TmuxWaitChannel

.NET
  • Python Unavailable
  • Ruby Unavailable
  • Lua Unavailable
  • TypeScript Unavailable
  • Rust Unavailable
  • Go Unavailable
  • Java Unavailable
  • .NET
  • C++ Unavailable
  • Swift Unavailable

View as Markdown

Module
LibTmux
Package
LibTmux
Source
src/LibTmux/Waiting/TmuxWaitChannel.cs
class LibTmux.TmuxWaitChannel
class [source]
class [source]
class LibTmux.TmuxWaitChannel

An open wait on a tmux wait-for channel.

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.

So this never abandons a live waiter. WaitAsync returning false means that attempt expired without observing completion. The open wait remains owned and may already have completed from a racing signal. Disposing ends its lifetime deliberately.

Discussed in Pane interaction , Waiting and retrying

4 declared, 0 inherited

Members

  • WaitAsync method Waits for the signal, giving this attempt a budget.
  • Channel property Gets the channel being waited on.
  • DisposeAsync method Withdraws the waiter from tmux.
  • Signalled property Gets whether the wait completed before withdrawal began.
Esc

Type to search.