(fn: () => Promise<A>)
| 89 | |
| 90 | /** Lift a Promise-returning function into Effect with a typed failure channel. */ |
| 91 | export const tryPromiseService = <A>(fn: () => Promise<A>): Effect.Effect<A, ServiceAdapterError> => |
| 92 | Effect.tryPromise({ |
| 93 | try: fn, |
| 94 | catch: (cause) => new ServiceAdapterError({ cause }), |
| 95 | }); |
| 96 | |
| 97 | /** |
| 98 | * Service-boundary error wrapper. Logs the full Cause chain (drizzle |
no outgoing calls
no test coverage detected