Package: effect
Module: Exit
Creates a successful Exit containing the given value.
When to use
Use when you need an Exit that contains a known success value.
Details
Returns a Success<A> with the provided value. Does not perform any
computation.
Example (Creating a successful Exit)
import { Exit } from "effect"
const exit = Exit.succeed(42)
console.log(Exit.isSuccess(exit)) // true
See
fail to create a failed Exitvoid for a pre-allocated success with no valueSignature
declare const succeed: <A>(a: A) => Exit<A>
Since v2.0.0