(fn: () => Promise<A>)
| 203 | |
| 204 | /** Lift a Promise-returning function into Effect with a typed failure channel. */ |
| 205 | export const tryPromiseService = <A>(fn: () => Promise<A>): Effect.Effect<A, ServiceAdapterError> => |
| 206 | Effect.tryPromise({ |
| 207 | try: fn, |
| 208 | catch: (cause) => new ServiceAdapterError({ cause }), |
| 209 | }); |
| 210 | |
| 211 | /** |
| 212 | * Service-boundary error wrapper. Logs the full Cause chain (drizzle |
no outgoing calls
no test coverage detected