addAndGet

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

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.

Exceptions

IndexOutOfBoundsException - if the index is out of bounds of this array.