← Docs
kotlin-stdlib / kotlin.concurrent / AtomicIntArray / decrementAndGet

decrementAndGet

Native
1.3
fun decrementAndGet ( index : Int ) : Int
(source)

Atomically decrements the element at the given index by one and returns the new value of the element.

Provides sequential consistent ordering guarantees.

Exceptions

IndexOutOfBoundsException - if the index is out of bounds of this array.

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 .