MCPcopy
hub / github.com/RedPlanetHQ/core / closeAll

Method closeAll

packages/providers/src/factory.ts:202–217  ·  view source on GitHub ↗

* Close all provider connections

()

Source from the content-addressed store, hash-verified

200 * Close all provider connections
201 */
202 static async closeAll(): Promise<void> {
203 const promises: Promise<void>[] = [];
204
205 if (this.graphProvider) {
206 promises.push(this.graphProvider.close());
207 }
208 if (this.vectorProvider) {
209 promises.push(this.vectorProvider.close());
210 }
211
212 await Promise.all(promises);
213
214 // Reset initialization flags
215 this.schemaInitialized = false;
216 this.vectorInfrastructureInitialized = false;
217 }
218}

Callers

nothing calls this directly

Calls 3

pushMethod · 0.80
allMethod · 0.80
closeMethod · 0.65

Tested by

no test coverage detected