event_manager library

A predictable event manager library for domain events.

Classes

BaseEventSubscriptionBuilder<TInput, TOutput>
Base for implementing custom EventSubscriptionBuilder.
DispatchStrategy
Strategy to use for dispatching events to the handlers
DomainEvent
Represents a domain event
EventHandler<TEvent>
Handler for TEvent.
EventHandlerStore
EventManager
Publish events through the mediator to be handled by multiple handlers.
EventObserver
Observer for DomainEvent's.
EventSubscription
Can be used to cancel the given subscription of a EventHandler.
EventSubscriptionBuilder<T>
Builder that is able to subscribe to the Mediator.

Typedefs

CancelCallback = void Function()
Canceled callback function.
EventHandlerFactory<TEvent> = EventHandler<TEvent> Function()
Factory to create a EventHandler.