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.

method libtmux-java latest

Pane.await

Waits until a condition holds for this pane as tmux reports it, and says why the wait ended.

Source and package
Qualified name
io.github.libtmux.Pane.await
Package
io.github.libtmux
Declared in
Pane
Distribution
io.github.libtmux:libtmux
Source
libtmux/src/main/java/io/github/libtmux/Pane.java

Description#

The pane is captured again before each test, so the condition reads fresh state rather than the capture this handle was built from. What the condition receives is an ordinary handle on this pane's server and can be kept. The ordering #awaitText() describes applies here too — a signal on a Server#channel() is exact, and this is for when nothing signals — and so do its deadline rules.

Examples#

pane.await(fresh -> !fresh.currentCommand().equals("zsh"), Duration.ofSeconds(5));
Parameters
Returns

why the wait ended for await(settled, timeout)

Raises
Esc

Type to search.

Reference previewOpen reference