MCPcopy Create free account
hub / github.com/TraderAlice/OpenAlice / disposeAll

Method disposeAll

src/workspaces/transcript-watcher.ts:291–304  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

289 }
290
291 disposeAll(): void {
292 for (const entry of this.entries.values()) {
293 try {
294 entry.watcher.close();
295 } catch {
296 // ignore
297 }
298 }
299 this.entries.clear();
300 for (const entry of this.pollEntries.values()) {
301 if (entry.timer) clearInterval(entry.timer);
302 }
303 this.pollEntries.clear();
304 }
305
306 private async onEvent(key: string, _event: string, filename: string): Promise<void> {
307 const entry = this.entries.get(key);

Callers

nothing calls this directly

Calls 1

closeMethod · 0.65

Tested by

no test coverage detected