uniflow-core / io.uniflow.core.threading / onMain

onMain

suspend fun <T> onMain(immediate: Boolean = false, block: suspend CoroutineScope.() -> T): T

Switch current execution context to Main thread