jsMain.com.baremetalcloud.runblocking.runBlockingCommon.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of multiplatform-runblocking-js Show documentation
Show all versions of multiplatform-runblocking-js Show documentation
Multiplatform implementation of runBlocking for use in common code.
package com.baremetalcloud.runblocking
import kotlinx.coroutines.*
import kotlin.coroutines.CoroutineContext
private val testScope = MainScope()
internal actual val testCoroutineContext: CoroutineContext = testScope.coroutineContext
public actual fun runBlockingCommon(block: suspend CoroutineScope.() -> Unit): dynamic = testScope.promise { this.block() }
© 2015 - 2025 Weber Informatics LLC | Privacy Policy