AtomicReference
Deprecated (with error)
Use kotlin.concurrent.AtomicReference instead.
Replace with
kotlin.concurrent.AtomicReference
Content copied to clipboard
An object reference that is always updated atomically.
Since Kotlin
1.3Functions
Link copied to clipboard
Atomically sets the value to the given new value if the current value equals the expected value, returns true if the operation was successful and false only if the current value was not equal to the expected value.
Since Kotlin 1.3
Link copied to clipboard
Atomically sets the value to the given new value if the current value equals the expected value and returns the old value in any case.
Since Kotlin 1.3