jvmMain.channels.ConflatedChannelState.kt Maven / Gradle / Ivy
/*
* Copyright 2016-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
package kotlinx.coroutines.channels
internal actual class ConflatedChannelState {
actual var value: Any? = EMPTY
actual inline fun withLock(block: () -> T): T =
synchronized(this) {
block()
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy