( label: string, run: () => Promise<A>, )
| 198 | }; |
| 199 | |
| 200 | export const fumaEffect = <A>( |
| 201 | label: string, |
| 202 | run: () => Promise<A>, |
| 203 | ): Effect.Effect<A, StorageFailure> => |
| 204 | Effect.tryPromise({ |
| 205 | try: run, |
| 206 | catch: (cause) => fumaFailureFromCause(label, cause), |
| 207 | }); |
| 208 | |
| 209 | export const activeFumaDbRef = Context.Reference<FumaDb | null>("executor/ActiveFumaDb", { |
| 210 | defaultValue: () => null, |
no test coverage detected