ImmediateStateReceiver
StateReceiver version that can only accept immediate state updates. It is recommended to use StateReceiver and its methods if possible. See the method docs for details
Inheritors
Properties
Functions
Link copied to clipboard
Directly compare and set the current state.
Link copied to clipboard
inline fun <T : S, S : MVIState> ImmediateStateReceiver<S>.updateStateImmediate(transform: T.() -> S)
A typed overload of updateStateImmediate.
A function that obtains current state and updates it atomically (in the thread context), and non-atomically in the coroutine context, which means it can cause races when you want to update states in parallel.