addAndGet

fun addAndGet(delta: Long): Long(source)

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

Since Kotlin

1.3

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

Deprecated (with error)

Use addAndGet(delta: Long) instead.

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

Since Kotlin

1.3