- Preparing search index...
- The search index is not available
Moirae
Interface IPublisher<Evt>
Methods
listen
- listen(handlerFn: ((event: Evt) => void)): string
-
Parameters
-
handlerFn: ((event: Evt) => void)
-
- (event: Evt): void
-
Returns void
Returns string
publish
- publish(event: Evt): Promise<void>
-
Returns Promise<void>
subscribe
- subscribe(handlerFn: ((event: Evt) => void)): string
-
Parameters
-
handlerFn: ((event: Evt) => void)
-
- (event: Evt): void
-
Returns void
Returns string
unsubscribe
- unsubscribe(key: string): void
-
Returns void
Publishers provide the interface between the underlying event system and the bus. This defines the interactions the bus has with the publisher.