jsAndWasmSharedMain.internal.LocalAtomics.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlinx-coroutines-core
Show all versions of kotlinx-coroutines-core
Coroutines support libraries for Kotlin
The newest version!
package kotlinx.coroutines.internal
internal actual class LocalAtomicInt actual constructor(private var value: Int) {
actual fun set(value: Int) {
this.value = value
}
actual fun get(): Int = value
actual fun decrementAndGet(): Int = --value
}