MCPcopy Create free account
hub / github.com/cortexkit/magic-context / dispose

Method dispose

packages/e2e-tests/src/pi-harness.ts:275–286  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

273 }
274
275 async dispose(): Promise<void> {
276 if (this.contextDbCached) {
277 try {
278 this.contextDbCached.close();
279 } catch {
280 // ignore close errors
281 }
282 this.contextDbCached = null;
283 }
284 await this.rpc.shutdown();
285 await this.mock.stop();
286 }
287}

Callers

nothing calls this directly

Calls 3

shutdownMethod · 0.80
stopMethod · 0.65
closeMethod · 0.45

Tested by

no test coverage detected