Bot
This commit is contained in:
Vendored
+14
@@ -0,0 +1,14 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.EventDispatcher = void 0;
|
||||
class EventDispatcher {
|
||||
publisher = new (require('./event-publisher').InMemoryEventPublisher)();
|
||||
register(handler) {
|
||||
this.publisher.register(handler);
|
||||
}
|
||||
async dispatch(event) {
|
||||
await this.publisher.publish(event);
|
||||
}
|
||||
}
|
||||
exports.EventDispatcher = EventDispatcher;
|
||||
//# sourceMappingURL=event-dispatcher.js.map
|
||||
Reference in New Issue
Block a user