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