fetchAndIncrementAt

Atomically increments the element of this AtomicIntArray at the given index by one and returns the old value of the element.

Since Kotlin

2.1

Throws

if the index is out of bounds of this array.

Samples


Atomically increments the element of this AtomicLongArray at the given index by one and returns the old value of the element.

Since Kotlin

2.1

Throws

if the index is out of bounds of this array.

Samples