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

Function stop

__tests__/ui-entrypoints-api.test.ts:94–100  ·  view source on GitHub ↗
(instance: Instance | undefined)

Source from the content-addressed store, hash-verified

92}
93
94async function stop(instance: Instance | undefined): Promise<void> {
95 if (!instance) return;
96 await instance.server.close();
97 instance.api.close();
98 instance.cg.destroy();
99 fs.rmSync(instance.dir, { recursive: true, force: true });
100}
101
102/* ======================================================================== */
103/* A routed Go service — the issue's acceptance case */

Callers 1

Calls 2

closeMethod · 0.65
destroyMethod · 0.45

Tested by

no test coverage detected