( operation: ServerHandlersDisposeError["operation"], dispose: () => Promise<unknown>, )
| 41 | }> {} |
| 42 | |
| 43 | const 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 | |
| 52 | const closeServerHandlers = async (handlers: ServerHandlers): Promise<void> => { |
| 53 | await Effect.runPromise( |
no outgoing calls
no test coverage detected