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

Function exitIsExit

packages/effect/src/internal/core.ts:2398–2399  ·  view source on GitHub ↗
(u: unknown)

Source from the content-addressed store, hash-verified

2396
2397/** @internal */
2398export const exitIsExit = (u: unknown): u is Exit.Exit<unknown, unknown> =>
2399 isEffect(u) && "_tag" in u && (u._tag === "Success" || u._tag === "Failure")
2400
2401/** @internal */
2402export const exitIsFailure = <A, E>(self: Exit.Exit<A, E>): self is Exit.Failure<A, E> => self._tag === "Failure"

Callers 2

[Equal.symbol]Method · 0.85
[Equal.symbol]Method · 0.85

Calls 1

isEffectFunction · 0.85

Tested by

no test coverage detected