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
/
getAndUpdate
get
And
Update
fun
<
T
>
StateContainer
<
T
>
.
getAndUpdate
(
updater
:
(
T
)
->
T
)
:
T
?
Updates the state and returns the previous state if successful, or null if failed.