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

Function ignoreClose

apps/local/src/mcp.ts:72–82  ·  view source on GitHub ↗
(close: (() => Promise<void>) | undefined)

Source from the content-addressed store, hash-verified

70};
71
72const ignoreClose = (close: (() => Promise<void>) | undefined): Promise<void> =>
73 close
74 ? Effect.runPromise(
75 Effect.ignore(
76 Effect.tryPromise({
77 try: close,
78 catch: () => undefined,
79 }),
80 ),
81 )
82 : Promise.resolve();
83
84const pausedRequestPattern = /^\/api\/mcp-sessions\/([^/?#]+)\/executions\/([^/?#]+)$/;
85const approvalRequestPattern = /^\/api\/mcp-sessions\/([^/?#]+)\/executions\/([^/?#]+)\/resume$/;

Callers 3

disposeFunction · 0.70
createMcpRequestHandlerFunction · 0.70
runMcpStdioServerFunction · 0.70

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected