runOnIO

inline fun <T> runOnIO(crossinline block: suspend CoroutineScope.() -> T): T

This uses runBlocking([Dispatchers.IO]) for non suspend functions.

Parameters

block

The suspend function to run.

See also