( effect: Effect.Effect<A, E, Layer.Layer.Success<typeof Dependencies>>, )
| 137 | const EffectRuntime = ManagedRuntime.make(Dependencies); |
| 138 | |
| 139 | export const runPromise = <A, E>( |
| 140 | effect: Effect.Effect<A, E, Layer.Layer.Success<typeof Dependencies>>, |
| 141 | ) => |
| 142 | EffectRuntime.runPromiseExit( |
| 143 | effect.pipe(Effect.provide(CookiePasswordAttachmentLive)), |
| 144 | ).then((res) => { |
| 145 | if (Exit.isFailure(res)) { |
| 146 | if (Cause.isDieType(res.cause)) throw res.cause.defect; |
| 147 | throw res; |
| 148 | } |
| 149 | |
| 150 | return res.value; |
| 151 | }); |
| 152 | |
| 153 | export const runPromiseExit = <A, E>( |
| 154 | effect: Effect.Effect<A, E, Layer.Layer.Success<typeof Dependencies>>, |
no outgoing calls
no test coverage detected