Pane.await
Waits until settled accepts this pane, read fresh from tmux before each test.
Source and package
- Qualified name
-
io.github .libtmux .kotlin .Pane. await - Package
- io.github.libtmux.kotlin
- Declared in
Pane- Distribution
- io.github.libtmux:libtmux-kotlin
- Source
- libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Pane.kt
- public
Kotlin suspending functionsAllows a function to call suspending operations and pause without blocking a thread. It does not start a coroutine by itself. fun await( timeout: Duration, every: Duration = 50.milliseconds, dispatcher: CoroutineDispatcher = Dispatchers.IO , settled: (Pane) -> Boolean, ): WakeReason -
Description
Cancelling the coroutine interrupts the wait. That is not a timeout. A read already sent to tmux is not taken back.
- Parameters
-
-
timeout(Duration) – how long to keep looking, finite and not negative -
every(Duration) – how long to leave between looks, at least 10 msDefault
50.milliseconds -
dispatcher(CoroutineDispatcher ) – where the blocking wait runsDefault
Dispatchers.IO
-
- Returns
-
why the wait ended
Same owner
containment 1 of 53 shownOther members of io.github.libtmux.kotlin.Pane whose names share await. They sit on the same type; that does not make them behave alike.
Recorded calls
source callsThe Kotlin reference records declarations, not calls, so this page shows no callers or callees. That is a limit of the extracted data, not a statement that nothing calls io.github.libtmux.kotlin.Pane.await.