commonMain.app.cash.sqldelight.internal.Atomics.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of runtime Show documentation
Show all versions of runtime Show documentation
Multiplatform runtime library to support generated code
The newest version!
package app.cash.sqldelight.internal
import kotlin.reflect.KProperty
expect class AtomicBoolean(value: Boolean) {
fun get(): Boolean
fun set(value: Boolean)
}
operator fun AtomicBoolean.getValue(thisRef: Any?, prop: KProperty<*>): Boolean {
return get()
}
operator fun AtomicBoolean.setValue(thisRef: Any?, prop: KProperty<*>, value: Boolean) {
set(value)
}
expect class Atomic(value: V) {
fun get(): V
fun set(value: V)
}
operator fun Atomic.getValue(thisRef: Any?, prop: KProperty<*>): T {
return get()
}
operator fun Atomic.setValue(thisRef: Any?, prop: KProperty<*>, value: T) {
set(value)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy