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

appleTest.RunTest.kt Maven / Gradle / Ivy

There is a newer version: 1.1.0
Show newest version
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.runBlocking
import kotlinx.coroutines.withTimeout

actual fun  block(body: suspend CoroutineScope.() -> T) {
    runBlocking {
        withTimeout(15000) {
            try {
                body()
            } catch (e: UnsupportedOperationException) {
                println("Test hit unsupported code, ignoring")
            }
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy