uniflow-core / io.uniflow.core.threading / kotlinx.coroutines.CoroutineScope

Extensions for kotlinx.coroutines.CoroutineScope

launchOnDefault

fun CoroutineScope.launchOnDefault(block: suspend CoroutineScope.() -> Unit): Job

Execute job in Default Thread

launchOnIO

fun CoroutineScope.launchOnIO(block: suspend CoroutineScope.() -> Unit): Job

Execute job in IO Thread

launchOnMain

fun CoroutineScope.launchOnMain(block: suspend CoroutineScope.() -> Unit): Job

Execute job in Main thread