package dev.inmo.micro_utils.coroutines import kotlinx.coroutines.CoroutineScope import kotlinx.coroutines.Dispatchers fun launchInCurrentThread(block: suspend CoroutineScope.() -> T): T { val scope = CoroutineScope(Dispatchers.Unconfined) return scope.launchSynchronously(block) }