commonMain.com.zegreatrob.testmints.async.TestStyleAsync.kt Maven / Gradle / Ivy
package com.zegreatrob.testmints.async
import kotlinx.coroutines.Deferred
import kotlinx.coroutines.test.TestResult
import kotlinx.coroutines.test.runTest
import kotlin.time.Duration.Companion.milliseconds
fun finalTransform(timeoutMs: Long, deferred: () -> Deferred) = runTest(timeout = timeoutMs.milliseconds) {
deferred().await()
}
expect suspend fun waitForTest(testFunction: () -> TestResult)
expect fun eventLoopProtect(thing: () -> T): T
© 2015 - 2025 Weber Informatics LLC | Privacy Policy