This commit is contained in:
Rayyan Syahbani Hermanto
2026-09-07 22:57:18 +07:00
parent fdbfb34842
commit 1bba2b518e
101 changed files with 2503 additions and 8 deletions
+14
View File
@@ -0,0 +1,14 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.InMemoryEventPublisher = void 0;
class InMemoryEventPublisher {
handlers = [];
register(handler) {
this.handlers.push(handler);
}
async publish(event) {
await Promise.all(this.handlers.map((h) => h(event)));
}
}
exports.InMemoryEventPublisher = InMemoryEventPublisher;
//# sourceMappingURL=event-publisher.js.map