effect-io-ai

Package: effect
Module: Exit

Exit.void

Provides a pre-allocated successful Exit with a void value.

When to use

Use when you need a shared successful Exit with no meaningful value.

Details

Equivalent to Exit.succeed(undefined) but shared as a single instance, avoiding allocation for a common case.

Example (Referencing the void Exit)

import { Exit } from "effect"

const exit = Exit.void
console.log(Exit.isSuccess(exit)) // true

See

Signature

declare const void: Exit<void, never>

Source

Since v2.0.0