Methods
createReader
- createReader<T>(Event): IEventReader<T>
-
Returns IEventReader<T>
createWriter
- createWriter<T>(): IEventWriter<T>
-
Returns IEventWriter<T>
publish
- publish(event): Promise<void>
-
Returns Promise<void>
subscribe
- subscribe<T>(Event, handler): void
-
Returns void
subscribeReader
- subscribeReader<T>(reader): void
-
Parameters
-
reader: Readonly<IEventReader<T>>
Returns void
unsubscribe
- unsubscribe<T>(Event, handler): void
-
Returns void
unsubscribeReader
- unsubscribeReader<T>(reader): void
-
Parameters
-
reader: Readonly<IEventReader<T>>
Returns void