We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 563c751 commit 1a12e86Copy full SHA for 1a12e86
packages/memory/interface.ts
@@ -482,6 +482,7 @@ export interface MemorySession<Space extends MemorySpace = MemorySpace>
482
}
483
484
export interface Subscriber<Space extends MemorySpace = MemorySpace> {
485
+ // Notifies a subscriber of a commit that has been applied
486
commit(commit: Commit<Space>): AwaitResult<Unit, SystemError>;
487
close(): AwaitResult<Unit, SystemError>;
488
packages/memory/provider.ts
@@ -247,6 +247,7 @@ class MemoryProviderSession<
247
return { ok: {} };
248
249
dispose() {
250
+ this.memory.unsubscribe(this);
251
this.controller = undefined;
252
this.sessions?.delete(this);
253
this.sessions = null;
0 commit comments