Type Alias IEventBusFactory<TDrivers, TEvents>

IEventBusFactory<TDrivers, TEvents>: {
    use(driverName?: TDrivers): IGroupableEventBus<TEvents>;
    withType<TOutput>(): IEventBusFactory<TDrivers, TOutput>;
}

The IEventBusFactory contract makes it easy to configure and switch between different IGroupableEventBus dynamically.

Type Parameters

Type declaration