function libtmux-kotlin latest
await
Waits for something to signal this channel.
Source and package
- public Kotlin suspending functions Allows a function to call suspending operations and pause without blocking a thread. It does not start a coroutine by itself. Language documentation fun Channel.await( timeout: Duration, dispatcher: Coroutine
Dispatcher = Dispatchers.IO , ): WakeReason -
Description#
Cancelling the coroutine interrupts the wait. That is not a timeout. A
wait-fortmux has already accepted is not taken back.- Parameters
-
-
timeout ( Duration ) – how long to wait, finite and positive
-
dispatcher ( Coroutine
Dispatcher ) – where the blocking wait runs
-
- Returns
-
why the wait ended