subscribeFactory method

EventSubscription subscribeFactory(
  1. EventHandlerFactory<T> factory
)

Subscribes to the given factory.

This finalizes the builder and applies all the steps before subscribing.

This factory will be resolved into an actual EventHandler at request time.

Implementation

EventSubscription subscribeFactory(
  EventHandlerFactory<T> factory,
) {
  return subscribe(EventHandler.factory(factory));
}