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

LibTmux.TmuxWait

.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/TmuxWait.cs
class LibTmux.TmuxWait
classstatic [source]
classstatic [source]
class LibTmux.TmuxWait

Waits for tmux to reach a state instead of sleeping.

tmux answers a command as soon as it has accepted it, not once the effect has landed, so code that acts and then reads immediately is racing the server. A fixed delay only hides that on an idle machine; waiting for the state itself is what makes the read say what it means. This is ordinary client work, not test scaffolding: reading back what a command produced is the common case, so it ships in the client rather than in LibTmux.Testing.

1 declared, 0 inherited

Members

  • UntilAsync method Waits until a probe reports the state was reached.
Esc

Type to search.