MCPcopy Index your code
hub / github.com/forloopcodes/contextplus / runCleanup

Function runCleanup

src/core/process-lifecycle.ts:141–149  ·  view source on GitHub ↗
(options: CleanupOptions)

Source from the content-addressed store, hash-verified

139}
140
141export async function runCleanup(options: CleanupOptions): Promise<void> {
142 options.cancelEmbeddings?.();
143 options.stopMonitors?.();
144 options.stopTracker();
145 await Promise.allSettled([
146 Promise.resolve(options.closeServer()),
147 Promise.resolve(options.closeTransport()),
148 ]);
149}

Callers 2

shutdownFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected