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

Function closeProvidedHandlers

apps/local/src/serve.ts:288–291  ·  view source on GitHub ↗
(handlers: ServerHandlers)

Source from the content-addressed store, hash-verified

286 withCorsHeaders(req, new Response(null, { status: 204 }), allowedHosts);
287
288const closeProvidedHandlers = async (handlers: ServerHandlers): Promise<void> => {
289 await handlers.mcp.close();
290 await handlers.api.dispose();
291};
292
293const ignoreCleanupFailure = async (cleanup: () => Promise<unknown>): Promise<void> => {
294 // oxlint-disable-next-line executor/no-promise-catch -- boundary: startup cleanup is best-effort and must not mask the original startup failure

Callers 1

disposeOwnedResourcesFunction · 0.85

Calls 2

disposeMethod · 0.80
closeMethod · 0.65

Tested by

no test coverage detected