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

Function either

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

Source from the content-addressed store, hash-verified

2932 * @category error handling
2933 */
2934export const either = <A, E, R>(self: Micro<A, E, R>): Micro<Either.Either<A, E>, never, R> =>
2935 match(self, { onFailure: Either.left, onSuccess: Either.right })
2936
2937/**
2938 * Retry the given `Micro` effect using the provided options.

Callers

nothing calls this directly

Calls 1

matchFunction · 0.70

Tested by

no test coverage detected