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

Function closeQuietly

packages/plugins/mcp/src/sdk/connection-pool.ts:32–33  ·  view source on GitHub ↗
(connection: McpConnection)

Source from the content-addressed store, hash-verified

30};
31
32const closeQuietly = (connection: McpConnection): Effect.Effect<void> =>
33 Effect.tryPromise(() => connection.close()).pipe(Effect.timeout(CLOSE_TIMEOUT), Effect.ignore);
34
35const isMcpInvocationError = (error: unknown): error is McpInvocationError =>
36 Predicate.isTagged(error, "McpInvocationError");

Callers 2

acquireFunction · 0.70
releaseFunction · 0.70

Calls 1

closeMethod · 0.65

Tested by

no test coverage detected