(try_: () => Promise<A>)
| 61 | * carry the tagged error as the rejected value), so we re-orphan it as a defect. |
| 62 | */ |
| 63 | const fromPromise = <A>(try_: () => Promise<A>): Effect.Effect<A> => |
| 64 | // oxlint-disable-next-line executor/no-effect-escape-hatch -- boundary: Promise executor facade has already erased the SDK typed error channel |
| 65 | Effect.tryPromise({ try: try_, catch: (cause) => cause }).pipe(Effect.orDie); |
| 66 | |
| 67 | // --------------------------------------------------------------------------- |
| 68 | // wrapPromiseExecutor — adapt the v2 Promise `Executor` back into an Effect |
no outgoing calls
no test coverage detected