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

Function ignoreClose

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

Source from the content-addressed store, hash-verified

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

Callers 4

disposeFunction · 0.70
modernHandlerForFunction · 0.70
createMcpRequestHandlerFunction · 0.70
runMcpStdioServerFunction · 0.70

Calls 1

resolveMethod · 0.80

Tested by

no test coverage detected