function libtmux-kotlin latest
awaitReservingCapacity
As await , while preserving process capacity for a call that signals it.
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.awaitReservingCapacity( timeout: Duration, dispatcher: Coroutine
Dispatcher = Dispatchers.IO , ): WakeReason -
- Parameters
-
-
timeout ( Duration ) – how long to wait, finite and positive
-
dispatcher ( Coroutine
Dispatcher ) – where the blocking wait runs
-