addAndGet

fun addAndGet(index: Int, delta: Long): Long(source)

Deprecated (with error)

Use addAndFetchAt(index: Int, delta: Long) instead.

Replace with

this.addAndFetchAt(index, delta)

Atomically adds the given delta to the element at the given index and returns the new value of the element.

Provides sequential consistent ordering guarantees.

Since Kotlin

2.1

Throws

if the index is out of bounds of this array.