MCPcopy Create free account
hub / github.com/effect-app/libs / catchAllMap

Function catchAllMap

packages/effect-app/src/Effect.ts:185–188  ·  view source on GitHub ↗
(f: (e: E) => A2)

Source from the content-addressed store, hash-verified

183 * Recovers from all errors.
184 */
185export 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.

Callers

nothing calls this directly

Calls 3

catchMethod · 0.80
syncMethod · 0.80
fFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…