commonMain.com.arkivanov.mvikotlin.utils.internal.Atomic.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of utils-internal-js Show documentation
Show all versions of utils-internal-js Show documentation
Kotlin Multiplatform MVI framework
@file:JvmName("AtomicJvm")
package com.arkivanov.mvikotlin.utils.internal
import kotlin.jvm.JvmName
interface AtomicRef {
var value: T
fun compareAndSet(expected: T, new: T): Boolean
}
interface AtomicBoolean {
var value: Boolean
}
interface AtomicInt {
var value: Int
}
expect fun atomic(value: T): AtomicRef
expect fun atomic(value: Boolean): AtomicBoolean
expect fun atomic(value: Int): AtomicInt
fun atomic(): AtomicRef = atomic(null)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy