getAndIncrement

Deprecated (with error)

Use fetchAndIncrement() instead.

Replace with

this.fetchAndIncrement()

Atomically increments the current value by one and returns the old value.

Since Kotlin

2.1