MCPcopy Create free account
hub / github.com/Effect-TS/effect / end

Function end

packages/effect/src/Channel.ts:853–853  ·  view source on GitHub ↗
(value: A)

Source from the content-addressed store, hash-verified

851 * @since 4.0.0
852 */
853export const end = <A>(value: A): Channel<never, never, A> => fromPull(Effect.succeed(Cause.done(value)))
854
855/**
856 * Creates a `Channel` that immediately ends with the lazily evaluated value.

Callers 1

Channel.tsFile · 0.70

Calls 3

fromPullFunction · 0.70
succeedMethod · 0.45
doneMethod · 0.45

Tested by

no test coverage detected