UNPKG

@nestjstools/messaging

Version:

Simplifies asynchronous and synchronous message handling with support for buses, handlers, channels, and consumers. Build scalable, decoupled applications with ease and reliability.

10 lines (9 loc) 406 B
import { DiscoveryService } from '@nestjs/core'; import { IMessageBus } from './i-message-bus'; import { Channel } from '../channel/channel'; export declare class CompositeMessageBusFactory { private readonly defaultMessageBus; private readonly discoveryService; constructor(defaultMessageBus: IMessageBus, discoveryService: DiscoveryService); create(channel: Channel<any>): IMessageBus; }