toggle menu
Arrow
1.2.4
common
switch theme
search in API
arrow-atomic
/
arrow.atomic
/
updateAndGet
update
And
Get
inline
fun
<
V
>
Atomic
<
V
>
.
updateAndGet
(
function
:
(
V
)
->
V
)
:
V
(
source
)
inline
fun
AtomicBoolean
.
updateAndGet
(
function
:
(
Boolean
)
->
Boolean
)
:
Boolean
(
source
)
inline
fun
AtomicInt
.
updateAndGet
(
function
:
(
Int
)
->
Int
)
:
Int
(
source
)
inline
fun
AtomicLong
.
updateAndGet
(
function
:
(
Long
)
->
Long
)
:
Long
(
source
)
Updates variable atomically using the specified
function
of its value and returns its new value.