MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / closeAll

Method closeAll

src/mcp/tools.ts:2718–2727  ·  view source on GitHub ↗

* Close all cached project connections

()

Source from the content-addressed store, hash-verified

2716 * Close all cached project connections
2717 */
2718 closeAll(): Promise<void> {
2719 this.closing = true;
2720 this.worktreeMismatchCache.clear();
2721 if (this.idleReleaseTimer) clearTimeout(this.idleReleaseTimer);
2722 this.idleReleaseTimer = null;
2723 this.nestedRepoCache.clear();
2724 this.trimProjects();
2725 if (this.projectCache.size === 0 && this.activeCalls === 0 && this.pendingCloses === 0) return Promise.resolve();
2726 return new Promise((resolve) => this.closeWaiters.push(resolve));
2727 }
2728
2729 /**
2730 * Validate that a value is a non-empty string within length bounds.

Calls 4

trimProjectsMethod · 0.95
pushMethod · 0.80
resolveMethod · 0.65
clearMethod · 0.45

Tested by 1

askFunction · 0.76