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

Function fromExit

packages/effect/src/unstable/reactivity/AsyncResult.ts:166–167  ·  view source on GitHub ↗
(exit: Exit.Exit<A, E>)

Source from the content-addressed store, hash-verified

164 * @since 4.0.0
165 */
166export const fromExit = <A, E>(exit: Exit.Exit<A, E>): Success<A, E> | Failure<A, E> =>
167 exit._tag === "Success" ? success(exit.value) : failure(exit.cause)
168
169/**
170 * Converts an `Exit` to a result, preserving the latest previous success when the exit is a failure.

Callers

nothing calls this directly

Calls 2

successFunction · 0.70
failureFunction · 0.70

Tested by

no test coverage detected