( operation: ServerHandlersDisposeError["operation"], dispose: () => Promise<unknown>, )
| 46 | }> {} |
| 47 | |
| 48 | const 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 | |
| 57 | const closeServerHandlers = async (handlers: ServerHandlers): Promise<void> => { |
| 58 | await Effect.runPromise( |
no outgoing calls
no test coverage detected