ioContext

suspend fun <T> ioContext(@WorkerThread block: suspend CoroutineScope.() -> T): T

Runs a block of code on the IO dispatcher.

Author

Arnau Mora

Since

20220519

Parameters

block

The block of code to run