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

jsAndWasmSharedMain.internal.Concurrent.kt Maven / Gradle / Ivy

package kotlinx.coroutines.internal

internal actual typealias ReentrantLock = NoOpLock

internal actual inline fun  ReentrantLock.withLock(action: () -> T) = action()

internal class NoOpLock {
    fun tryLock() = true
    fun unlock(): Unit {}
}

internal actual fun  identitySet(expectedSize: Int): MutableSet = HashSet(expectedSize)





© 2015 - 2025 Weber Informatics LLC | Privacy Policy