KState
Toggle table of contents
v1.6.1
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
KState
KState
/
ca.acendas.kstate.utils
/
compareAndSet
compare
And
Set
fun
<
T
>
StateContainer
<
T
>
.
compareAndSet
(
expectedState
:
T
,
newState
:
T
)
:
Boolean
Conditionally updates the state only if the current state matches the expected state.