AtomicDelegates
object AtomicDelegates
Factory object for creating thread-safe atomic property delegates.
Functions
Link copied to clipboard
Creates a thread-safe Boolean property delegate backed by AtomicBoolean.
Link copied to clipboard
Link copied to clipboard
Creates a thread-safe Long property delegate backed by AtomicLong.
Link copied to clipboard
Creates a thread-safe delegate for a non-nullable property backed by an AtomicReference.
Link copied to clipboard
fun <T> singleSetReference(initValue: T? = null, compareValue: T? = null): ReadWriteProperty<Any?, T?>
Creates a thread-safe delegate that can only be set once via compare-and-set.