MCPcopy
hub / github.com/coder/mux / enforceCompletedReportCacheLimit

Method enforceCompletedReportCacheLimit

src/node/services/taskService.ts:9615–9621  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9613 }
9614
9615 private enforceCompletedReportCacheLimit(): void {
9616 while (this.completedReportsByTaskId.size > COMPLETED_REPORT_CACHE_MAX_ENTRIES) {
9617 const first = this.completedReportsByTaskId.keys().next();
9618 if (first.done) break;
9619 this.completedReportsByTaskId.delete(first.value);
9620 }
9621 }
9622
9623 private resolveWaiters(
9624 taskId: string,

Callers 2

resolveWaitersMethod · 0.95

Calls 2

nextMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected