effect-io-ai

Package: effect
Module: Channel

Channel.end

Creates a Channel that immediately ends with the specified value.

Example (Ending with a value)

import { Channel } from "effect"

const channel = Channel.end("done")
// Ends immediately with "done", emits nothing

Signature

declare const end: <A>(value: A) => Channel<never, never, A>

Source

Since v4.0.0