getAndAdd

fun getAndAdd(delta: Long): Long(source)

Deprecated (with error)

Use fetchAndAdd(newValue: Long) instead.

Replace with

this.fetchAndAdd(newValue)

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

Since Kotlin

2.1