jsMain.com.zegreatrob.testmints.async.Async.kt Maven / Gradle / Ivy
package com.zegreatrob.testmints.async
import kotlinx.coroutines.await
import kotlin.js.Promise
actual suspend fun waitForTest(testFunction: () -> dynamic) {
testFunction().unsafeCast>().await()
}
actual fun eventLoopProtect(thing: () -> T) = thing()
© 2015 - 2025 Weber Informatics LLC | Privacy Policy