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

Function exitGetSuccess

packages/effect/src/internal/effect.ts:2040–2041  ·  view source on GitHub ↗
(self: Exit.Exit<A, E>)

Source from the content-addressed store, hash-verified

2038
2039/** @internal */
2040export const exitGetSuccess = <A, E>(self: Exit.Exit<A, E>): Option.Option<A> =>
2041 exitIsSuccess(self) ? Option.some(self.value) : Option.none()
2042
2043/** @internal */
2044export const exitGetCause = <A, E>(self: Exit.Exit<A, E>): Option.Option<Cause.Cause<E>> =>

Callers

nothing calls this directly

Calls 2

exitIsSuccessFunction · 0.85
someMethod · 0.80

Tested by

no test coverage detected