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

TmuxWait

Waits for tmux to reach a state instead of sleeping.

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

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 members

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

Type to search.

Reference previewOpen reference