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

Function ignoreCleanupFailure

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

Source from the content-addressed store, hash-verified

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
295 await cleanup().catch(() => {});
296};
297
298export async function startServer(opts: StartServerOptions = {}): Promise<ServerInstance> {
299 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