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

Function ignoreClose

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

Source from the content-addressed store, hash-verified

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