await
Waits for something to signal this channel.
Source and package
- Qualified name
-
io.github .libtmux .Channel. await - Package
- io.github.libtmux.Channel
- Distribution
- io.github.libtmux:libtmux-kotlin
- Source
- libtmux-kotlin/src/main/kotlin/io/github/libtmux/kotlin/Waits.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 Channel.await( timeout: Duration, dispatcher: CoroutineDispatcher = 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
-
-
dispatcher(CoroutineDispatcher ) – where the blocking wait runsDefault
Dispatchers.IO
- Returns
-
why the wait ended
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.Channel.await.