StateStrategy

sealed interface StateStrategy

Defines available strategies Store can use when a state operation (StateReceiver.updateState or StateReceiver.withState) is requested.

Set during store configuration.

Inheritors

Types

Link copied to clipboard
data class Atomic(val reentrant: Boolean = true) : StateStrategy

Enables transaction serialization for state updates, making state updates atomic and suspendable.

Link copied to clipboard

State transactions are not Atomic (not serializable). This means ` StateReceiver.updateState and StateReceiver.withState functions are no-op and forward to updateStateImmediate.