(fn: () => Promise<A>)
| 30 | |
| 31 | /** Lift a Promise-returning function into Effect with a typed failure channel. */ |
| 32 | export const tryPromiseService = <A>(fn: () => Promise<A>): Effect.Effect<A, ServiceAdapterError> => |
| 33 | Effect.tryPromise({ |
| 34 | try: fn, |
| 35 | catch: (cause) => new ServiceAdapterError({ cause }), |
| 36 | }); |
| 37 | |
| 38 | /** |
| 39 | * Service-boundary error wrapper. Logs the full Cause chain (drizzle |
no outgoing calls
no test coverage detected