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
- 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
-
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
#awaitTextdescribes applies here too — a signal on aServer#channelis 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
-
-
IllegalArgumentException – if
everyis shorter than 10 ms
-
0 declared, 0 inherited