Event
Declare events to be used as endpoints for publish or subscribe calls.
Example:
static let SomeEvent = Causality.Event<Int>(label: "Some Event")
This declares SomeEvent
as an event that will require an Int
on publish and will pass the same Int
to the subscription handler.