(fn: () => Promise<A>)
| 182 | |
| 183 | /** Lift a Promise-returning function into Effect with a typed failure channel. */ |
| 184 | export const tryPromiseService = <A>(fn: () => Promise<A>): Effect.Effect<A, ServiceAdapterError> => |
| 185 | Effect.tryPromise({ |
| 186 | try: fn, |
| 187 | catch: (cause) => new ServiceAdapterError({ cause }), |
| 188 | }); |
| 189 | |
| 190 | /** |
| 191 | * Service-boundary error wrapper. Logs the full Cause chain (drizzle |
no outgoing calls
no test coverage detected