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

Function end

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

Source from the content-addressed store, hash-verified

935 * @since 4.0.0
936 */
937export const end = <A>(value: A): Channel<never, never, A> => fromPull(Effect.succeed(Cause.done(value)))
938
939/**
940 * Creates a `Channel` that immediately ends with the lazily evaluated value.

Callers

nothing calls this directly

Calls 3

fromPullFunction · 0.70
succeedMethod · 0.45
doneMethod · 0.45

Tested by

no test coverage detected