( label: string, run: () => Promise<A>, )
| 220 | }; |
| 221 | |
| 222 | export const fumaEffect = <A>( |
| 223 | label: string, |
| 224 | run: () => Promise<A>, |
| 225 | ): Effect.Effect<A, StorageFailure> => |
| 226 | Effect.tryPromise({ |
| 227 | try: run, |
| 228 | catch: (cause) => fumaFailureFromCause(label, cause), |
| 229 | }); |
| 230 | |
| 231 | export const activeFumaDbRef = Context.Reference<FumaDb | null>("executor/ActiveFumaDb", { |
| 232 | defaultValue: () => null, |
no test coverage detected