iosArm64Test.Utils.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of flare Show documentation
Show all versions of flare Show documentation
Light the way for your app's backend with functional and testable Firebase components
import kotlinx.coroutines.*
import platform.Foundation.*
actual val context: Any? = null
actual fun runTest(test: suspend CoroutineScope.() -> Unit): Unit = runBlocking {
val testRun = MainScope().async { test() }
while (testRun.isActive) {
NSRunLoop.mainRunLoop.runMode(NSDefaultRunLoopMode, NSDate.create(1.0, NSDate())
)
yield()
}
testRun.await()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy