kotlin-client.libraries.multiplatform.jsTest.Coroutine.kt.mustache Maven / Gradle / Ivy
package util
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.promise
actual fun runTest(block: suspend (scope : CoroutineScope) -> T): dynamic = GlobalScope.promise { block(this) }