Event
public protocol Event
Since we cannot extend or inherit Enums, this protocol
serves as the base for all events. The State reducer State(S) * Event(E) → Action (A), State (S’)
accepts this Event and emits a Command to act on or state change.
-
event()Default implementationSelfas EventDefault Implementation
Selfas EventDeclaration
Swift
func event() -> Self