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

Function ignoreClose

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

Source from the content-addressed store, hash-verified

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