(f: (e: E) => A2)
| 183 | * Recovers from all errors. |
| 184 | */ |
| 185 | export function catchAllMap<E, A2>(f: (e: E) => A2) { |
| 186 | return <R, A>(self: Effect.Effect<A, E, R>): Effect.Effect<A2 | A, never, R> => |
| 187 | Effect.catch(self, (err: E) => Effect.sync(() => f(err))) |
| 188 | } |
| 189 | |
| 190 | /** |
| 191 | * Annotates each log in this scope with the specified log annotation. |