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

Function either

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

Source from the content-addressed store, hash-verified

2933 * @category error handling
2934 */
2935export const either = <A, E, R>(self: Micro<A, E, R>): Micro<Either.Either<A, E>, never, R> =>
2936 match(self, { onFailure: Either.left, onSuccess: Either.right })
2937
2938/**
2939 * 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