Package-level declarations

Types

Link copied to clipboard
interface KorAtomicBase<T>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open class KorAtomicRef<T> : KorAtomicBase<T>

Functions

Link copied to clipboard
fun <T> atomicLazy(initializer: () -> T): Lazy<T>
Link copied to clipboard
Link copied to clipboard
inline operator fun KorAtomicBoolean.getValue(obj: Any, prop: KProperty<Any?>): Boolean
inline operator fun KorAtomicInt.getValue(obj: Any, prop: KProperty<Any?>): Int
inline operator fun KorAtomicLong.getValue(obj: Any, prop: KProperty<Any?>): Long
inline operator fun <T> KorAtomicRef<T>.getValue(obj: Any, prop: KProperty<Any?>): T
Link copied to clipboard
expect fun <T> korAtomic(initial: T): KorAtomicRef<T>
expect fun korAtomic(initial: Boolean): KorAtomicBoolean
expect fun korAtomic(initial: Int): KorAtomicInt
expect fun korAtomic(initial: Long): KorAtomicLong
actual fun <T> korAtomic(initial: T): KorAtomicRef<T>
actual fun korAtomic(initial: Boolean): KorAtomicBoolean
actual fun korAtomic(initial: Int): KorAtomicInt
actual fun korAtomic(initial: Long): KorAtomicLong
actual fun <T> korAtomic(initial: T): KorAtomicRef<T>
actual fun korAtomic(initial: Boolean): KorAtomicBoolean
actual fun korAtomic(initial: Int): KorAtomicInt
actual fun korAtomic(initial: Long): KorAtomicLong
actual fun <T> korAtomic(initial: T): KorAtomicRef<T>
actual fun korAtomic(initial: Boolean): KorAtomicBoolean
actual fun korAtomic(initial: Int): KorAtomicInt
actual fun korAtomic(initial: Long): KorAtomicLong
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <T> KorAtomicRef(initial: T): KorAtomicRef<T>
Link copied to clipboard
inline operator fun KorAtomicBoolean.setValue(obj: Any, prop: KProperty<Any?>, v: Boolean)
inline operator fun KorAtomicInt.setValue(obj: Any, prop: KProperty<Any?>, v: Int)
inline operator fun KorAtomicLong.setValue(obj: Any, prop: KProperty<Any?>, v: Long)
inline operator fun <T> KorAtomicRef<T>.setValue(obj: Any, prop: KProperty<Any?>, v: T)
Link copied to clipboard
inline fun <T> KorAtomicBase<T>.update(transform: (T) -> T): T