Interface for a state reference. Provides methods to get, set, and confirm the current state.
Confirms the current state (potentially applying a confirmation transformation).
Returns the current state value.
Updates the state to the provided value.
The new state value.
Interface for a state reference. Provides methods to get, set, and confirm the current state.