effect-io-ai

Package: effect
Module: Exit

Exit.succeed

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

Signature

declare const succeed: <A>(a: A) => Exit<A>

Source

Since v2.0.0