getAndAdd
Deprecated (with error)
Use fetchAndAddAt(index: Int, delta: Int) instead.
Replace with
this.fetchAndAddAt(index, delta)
Content copied to clipboard
Atomically adds the given delta to the element at the given index and returns the old value of the element.
Provides sequential consistent ordering guarantees.
Since Kotlin
2.1Throws
if the index is out of bounds of this array.