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

Function either

packages/effect/src/internal/core.ts:703–707  ·  view source on GitHub ↗
(self: Effect.Effect<A, E, R>)

Source from the content-addressed store, hash-verified

701
702/* @internal */
703export const either = <A, E, R>(self: Effect.Effect<A, E, R>): Effect.Effect<Either.Either<A, E>, never, R> =>
704 matchEffect(self, {
705 onFailure: (e) => succeed(Either.left(e)),
706 onSuccess: (a) => succeed(Either.right(a))
707 })
708
709/* @internal */
710export const exit = <A, E, R>(self: Effect.Effect<A, E, R>): Effect.Effect<Exit.Exit<A, E>, never, R> =>

Callers 3

orElseFunction · 0.70
matcher.tsFile · 0.70
stm.tsFile · 0.50

Calls 1

succeedFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…