class AsyncRuntime
source · line 7public
public class AsyncRuntime internal constructor(private val config: AsyncRuntimeConfig)
Runs coroutines and I/O on the same managed workers, sharing one logical event loop.
function run
source · line 11public
public fun <T> run(block: suspend CoroutineScope.() -> T): T
Returns the root result after tasks, I/O resources and both worker groups have closed.
parameter block
source · line 11public
block: suspend CoroutineScope.() -> T
type parameter T
source · line 11public
T