Readonly
eventsCurrent number of events in queue
All event types that have registered listeners.
Subscribe to a specific event type
Event type to subscribe to
Function to handle the event
Asserts the uniqne-ness of the handler. If true, then only one handler per topic otherwise, throws error
Unsubscribe function
A simple event broker for handling local event-driven workflows within function scope. Ideal for composing function handlers and coordinating local business logic steps.
Description
Use SimpleEventBroker when you need:
Not suitable for:
Typical use cases:
Example