All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jvmTest.com.michaeltroger.latintocyrillic.runTest.kt Maven / Gradle / Ivy

The newest version!
package com.michaeltroger.latintocyrillic

import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.asCoroutineDispatcher
import kotlinx.coroutines.runBlocking
import java.util.concurrent.Executors
import kotlin.coroutines.CoroutineContext

internal actual val testCoroutineContext: CoroutineContext =
    Executors.newSingleThreadExecutor().asCoroutineDispatcher()
internal actual fun runBlockingTest(block: suspend CoroutineScope.() -> Unit) =
    runBlocking(testCoroutineContext) { this.block() }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy