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

jsMain.com.baremetalcloud.runblocking.runBlockingCommon.kt Maven / Gradle / Ivy

There is a newer version: 1.1
Show newest version
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