AtomicArray
An Array
Since Kotlin
1.9Properties
Functions
Link copied to clipboard
Atomically sets the value of the element at the given index to the new value if the current value equals the expected value and returns the old value of the element in any case.
Since Kotlin 1.9
Link copied to clipboard
Atomically sets the value of the element at the given index to the new value if the current value equals the expected value. Returns true if the operation was successful and false only if the current value of the element was not equal to the expected value.
Since Kotlin 1.9