Hyperlinkv0.8.0-beta.28

Channel

Channel.endconsteffect/Channel.ts:834
<A>(value: A): Channel<never, never, A>

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
constructors
Source effect/Channel.ts:8341 lines
export const end = <A>(value: A): Channel<never, never, A> => fromPull(Effect.succeed(Cause.done(value)))
Referenced by 1 symbols