Core LibraryAPI Reference

Choose documentation 3

latest

Current version

latest
English

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

class libtmux-dotnet latest

TmuxWait

Namespace LibTmux.TmuxWait LibTmux

Waits for tmux to reach a state instead of sleeping.

View as Markdown

Source and package
Module
LibTmux
Package
LibTmux
Source
src/LibTmux/Waiting/TmuxWait.cs
class LibTmux.TmuxWait
classstatic [source]

Description#

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.

Members1 member#

Common operations1 member#

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

Type to search.