← Docs
kotlin-stdlib / kotlin.concurrent / AtomicLong / incrementAndGet

incrementAndGet

Native
1.3
fun incrementAndGet ( ) : Long
(source)

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

Stay in touch:
  • Contributing to Kotlin
  • Releases
  • Press Kit
  • Security
  • Blog
  • Issue Tracker
  • Brand assets
  • Careers
Supported and developed by JetBrains .
Kotlin™ is protected under the Kotlin Foundation
and licensed under the Apache 2 license .