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

Function ignoreClose

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

Source from the content-addressed store, hash-verified

80};
81
82const ignoreClose = (close: (() => Promise<void>) | undefined): Promise<void> =>
83 close
84 ? Effect.runPromise(
85 Effect.ignore(
86 Effect.tryPromise({
87 try: close,
88 catch: () => undefined,
89 }),
90 ),
91 )
92 : Promise.resolve();
93
94const pausedRequestPattern = /^\/api\/mcp-sessions\/([^/?#]+)\/executions\/([^/?#]+)$/;
95const 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