suspend fun <T> onDefault(block: suspend CoroutineScope.() -> T): T
Switch current execution context to Default Thread |
|
suspend fun <T> onIO(block: suspend CoroutineScope.() -> T): T
Switch current execution context to IO Thread |
|
suspend fun <T> onMain(immediate: Boolean = false, block: suspend CoroutineScope.() -> T): T
Switch current execution context to Main thread |