Arrow
Toggle table of contents
2.0.0
common
Platform filter
common
Switch theme
Search in API
Arrow
arrow-atomic
/
arrow.atomic
/
loop
loop
inline
fun
<
V
>
Atomic
<
V
>
.
loop
(
action
:
(
V
)
->
Unit
)
:
Nothing
inline
fun
AtomicBoolean
.
loop
(
action
:
(
Boolean
)
->
Unit
)
:
Nothing
inline
fun
AtomicInt
.
loop
(
action
:
(
Int
)
->
Unit
)
:
Nothing
inline
fun
AtomicLong
.
loop
(
action
:
(
Long
)
->
Unit
)
:
Nothing
Infinite loop that reads this atomic variable and performs the specified
action
on its value.