incrementAndGet

Deprecated (with error)

Use incrementAndFetch() instead.

Replace with

this.incrementAndFetch()

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

Since Kotlin

2.1