korlibs
Toggle table of contents
6.1.0-SNAPSHOT
common
Target filter
common
Switch theme
Search in API
Skip to content
korlibs
korlibs-concurrent
/
korlibs.io.concurrent.atomic
/
update
update
inline
fun
<
T
>
KorAtomicRef
<
T
>
.
update
(
transform
:
(
T
)
->
T
)
:
T
inline
fun
KorAtomicInt
.
update
(
transform
:
(
Int
)
->
Int
)
:
Int
inline
fun
KorAtomicLong
.
update
(
transform
:
(
Long
)
->
Long
)
:
Long
inline
fun
KorAtomicBoolean
.
update
(
transform
:
(
Boolean
)
->
Boolean
)
:
Boolean
Deprecated
Replace with
import kotlinx.atomicfu.updateAndGet
Content copied to clipboard
updateAndGet(transform)
Content copied to clipboard