
jvmMain.com.zegreatrob.testmints.async.Async.kt Maven / Gradle / Ivy
package com.zegreatrob.testmints.async
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Deferred
import kotlinx.coroutines.runBlocking
@Suppress("unused")
actual fun testAsync(block: suspend CoroutineScope.() -> T) {
runBlocking { block() }
}
actual fun finalTransform(it: () -> Deferred) {
runBlocking { it().await() }
}
@Suppress("RedundantSuspendModifier")
actual suspend fun waitForTest(testFunction: () -> Unit) {
testFunction()
}
actual fun eventLoopProtect(thing: () -> T) = thing()
© 2015 - 2025 Weber Informatics LLC | Privacy Policy