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

Function ignoreDisposeFailure

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

Source from the content-addressed store, hash-verified

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

Callers 3

closeServerHandlersFunction · 0.85
createServerHandlersFunction · 0.85
disposeServerHandlersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected