State Machine
Interface for a state machine that manages state transitions through events.
A state machine provides controlled state management with event-driven transitions, lifecycle management, and observer notifications. This interface is designed to be coroutine-friendly while requiring zero external dependencies.
Parameters
S
The type of states in the state machine
E
The type of events that can trigger transitions