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

Function closeProvidedHandlers

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

Source from the content-addressed store, hash-verified

287 withCorsHeaders(req, new Response(null, { status: 204 }), allowedHosts);
288
289const closeProvidedHandlers = async (handlers: ServerHandlers): Promise<void> => {
290 await handlers.mcp.close();
291 await handlers.api.dispose();
292};
293
294const ignoreCleanupFailure = async (cleanup: () => Promise<unknown>): Promise<void> => {
295 // 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