effect-io-ai

Package: effect
Module: Sink

Sink.fromEffectEnd

Creates a sink that ignores upstream input and completes from an effect that already returns an End.

When to use

Use when you need to create a sink from an effect that returns both the sink result value and optional leftovers.

Signature

declare const fromEffectEnd: <A, E, R, L = never>(effect: Effect.Effect<End<A, L>, E, R>) => Sink<A, unknown, L, E, R>

Source

Since v4.0.0