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

Function ignoreClose

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

Source from the content-addressed store, hash-verified

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