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