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

Function ignoreDisposeFailure

apps/local/src/main.ts:48–55  ·  view source on GitHub ↗
(
  operation: ServerHandlersDisposeError["operation"],
  dispose: () => Promise<unknown>,
)

Source from the content-addressed store, hash-verified

46}> {}
47
48const ignoreDisposeFailure = (
49 operation: ServerHandlersDisposeError["operation"],
50 dispose: () => Promise<unknown>,
51) =>
52 Effect.tryPromise({
53 try: dispose,
54 catch: (cause) => new ServerHandlersDisposeError({ operation, cause }),
55 }).pipe(Effect.ignore);
56
57const closeServerHandlers = async (handlers: ServerHandlers): Promise<void> => {
58 await Effect.runPromise(

Callers 3

closeServerHandlersFunction · 0.85
createServerHandlersFunction · 0.85
disposeServerHandlersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected