W3cubDocs

/Kotlin

addAndGet

Platform and version requirements: Native (1.3)
fun addAndGet(delta: Long): Long
fun addAndGet(delta: Int): Long

Increments the value by delta and returns the new value.

Parameters

delta - the value to add

Return the new value

© 2010–2020 JetBrains s.r.o. and Kotlin Programming Language contributors
Licensed under the Apache License, Version 2.0.
https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.native.concurrent/-atomic-long/add-and-get.html