MCPcopy Create free account
hub / github.com/CommE2E/comm / removeID

Method removeID

lib/shared/thread-watcher.js:16–26  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

14 }
15
16 removeID(id: string) {
17 const currentCount = this.watchedIDs.get(id);
18 if (!currentCount) {
19 return;
20 }
21 const nextCount = currentCount - 1;
22 this.watchedIDs.set(id, nextCount);
23 if (nextCount === 0) {
24 this.pendingRemovals.set(id, Date.now());
25 }
26 }
27
28 getWatchedIDs(): string[] {
29 const now = Date.now();

Callers 3

useWatchThreadFunction · 0.80
useFilteredChildThreadsFunction · 0.80

Calls 2

getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected