(services: Context<T>)
| 36 | |
| 37 | // we wrap into CauseException because we want to keep the full cause of the failure. |
| 38 | export const makeRunPromise = <T>(services: Context<T>) => |
| 39 | flow(Effect.runPromiseExitWith(services), (_) => |
| 40 | _.then( |
| 41 | Exit.match({ |
| 42 | onFailure: (cause) => Promise.reject(new CauseException(cause, "runPromise")), |
| 43 | onSuccess: (value) => Promise.resolve(value) |
| 44 | }) |
| 45 | )) |
| 46 | |
| 47 | export const makeRunSync = <T>(services: Context<T>) => |
| 48 | flow( |
no outgoing calls
no test coverage detected
searching dependent graphs…