MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / disposeOwnedResources

Function disposeOwnedResources

apps/local/src/serve.ts:320–328  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

318 let viteChild: ViteChild | null = null;
319
320 const disposeOwnedResources = async (): Promise<void> => {
321 setOAuthCompletionListener(null);
322 if (ownsHandlers) {
323 await disposeServerHandlers();
324 } else {
325 await closeProvidedHandlers(handlers);
326 }
327 if (viteChild) await viteChild.stop();
328 };
329
330 // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: after handlers boot, failed static/dev/Bun startup must release DB ownership before surfacing the startup error
331 try {

Callers 1

stopFunction · 0.85

Calls 3

disposeServerHandlersFunction · 0.90
closeProvidedHandlersFunction · 0.85

Tested by

no test coverage detected