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

commonMain.com.zegreatrob.testmints.async.TestStyleAsync.kt Maven / Gradle / Ivy

There is a newer version: 12.1.40
Show newest version
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