getAndAdd

fun getAndAdd(delta: Int): Int(source)

Deprecated (with error)

Use fetchAndAdd(newValue: Int) instead.

Replace with

this.fetchAndAdd(newValue)

Atomically adds the given value to the current value and returns the old value.

Since Kotlin

2.1