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

io.github.libtmux.Pane.Pane.await

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

View as Markdown

Module
io.github.libtmux.Pane
Declared in
Pane
Package
io.github.libtmux:libtmux
Source
libtmux/src/main/java/io/github/libtmux/Pane.java
await ( settled : Predicate<Pane> , timeout : Duration ) → WakeReason ( settled : Predicate<Pane> , timeout : Duration , every : Duration ) → WakeReason
methodoverload2 overloads [source]
methodoverload2 overloads [source]
await

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

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
  • every ( Duration ) – how long to leave between looks, at least 10 ms

Raises

0 declared, 0 inherited

Esc

Type to search.