effect-io-ai

Package: effect
Module: Sink

Sink.collectLeftover

Collects the leftovers from the stream when the sink succeeds and returns them as part of the sink’s result.

Signature

declare const collectLeftover: <A, In, L, E, R>(self: Sink<A, In, L, E, R>) => Sink<[A, Chunk.Chunk<L>], In, never, E, R>

Source

Since v2.0.0