Arrow
Toggle table of contents
2.0.0
common
Platform filter
common
Switch theme
Search in API
Arrow
arrow-atomic
/
arrow.atomic
/
updateAndGet
update
And
Get
inline
fun
<
V
>
Atomic
<
V
>
.
updateAndGet
(
function
:
(
V
)
->
V
)
:
V
inline
fun
AtomicBoolean
.
updateAndGet
(
function
:
(
Boolean
)
->
Boolean
)
:
Boolean
inline
fun
AtomicInt
.
updateAndGet
(
function
:
(
Int
)
->
Int
)
:
Int
inline
fun
AtomicLong
.
updateAndGet
(
function
:
(
Long
)
->
Long
)
:
Long
Updates variable atomically using the specified
function
of its value and returns its new value.