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

Function ignoreCleanupFailure

apps/local/src/serve.ts:294–297  ·  view source on GitHub ↗
(cleanup: () => Promise<unknown>)

Source from the content-addressed store, hash-verified

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
296 await cleanup().catch(() => {});
297};
298
299export async function startServer(opts: StartServerOptions = {}): Promise<ServerInstance> {
300 const port = opts.port ?? parseInt(process.env.PORT ?? "4788", 10);

Callers 1

startServerFunction · 0.85

Calls 1

cleanupFunction · 0.50

Tested by

no test coverage detected