addAndGet

fun addAndGet(delta: Int): Int(source)

Deprecated (with error)

Use addAndFetch(newValue: Int) instead.

Replace with

this.addAndFetch(newValue)

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

Since Kotlin

2.1