kotlin-stdlib / kotlin.concurrent / AtomicInt / getAndIncrement getAndIncrement Native 1.3 fun getAndIncrement(): Int(source) Atomically increments the current value by one and returns the old value.