MCPcopy Index your code
hub / github.com/Effect-TS/effect / ignoreLogged

Function ignoreLogged

packages/effect/src/Micro.ts:2906–2911  ·  view source on GitHub ↗
(self: Micro<A, E, R>)

Source from the content-addressed store, hash-verified

2904 * @category error handling
2905 */
2906export const ignoreLogged = <A, E, R>(self: Micro<A, E, R>): Micro<void, never, R> =>
2907 matchEffect(self, {
2908 // eslint-disable-next-line no-console
2909 onFailure: (error) => sync(() => console.error(error)),
2910 onSuccess: (_) => void_
2911 })
2912
2913/**
2914 * Replace the success value of the given `Micro` effect with an `Option`,

Callers

nothing calls this directly

Calls 2

errorMethod · 0.65
syncFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…