on<T extends DomainEvent> method

EventSubscriptionBuilder<T> on<T extends DomainEvent>()

Subscribe on the given T event.

Returns a EventSubscriptionBuilder that allows to build a specific subscription.

Implementation

EventSubscriptionBuilder<T> on<T extends DomainEvent>() =>
    EventSubscriptionBuilder.create(_eventHandlerStore);