MCPcopy Create free account
hub / github.com/Effect-TS/effect / ignoreLogged

Function ignoreLogged

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

Source from the content-addressed store, hash-verified

2905 * @category error handling
2906 */
2907export const ignoreLogged = <A, E, R>(self: Micro<A, E, R>): Micro<void, never, R> =>
2908 matchEffect(self, {
2909 // eslint-disable-next-line no-console
2910 onFailure: (error) => sync(() => console.error(error)),
2911 onSuccess: (_) => void_
2912 })
2913
2914/**
2915 * 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