effect-io-ai

Package: effect
Module: Sink

Sink.collectAllWhileEffect

Accumulates incoming elements into a chunk as long as they verify effectful predicate p.

Signature

declare const collectAllWhileEffect: <In, E, R>(predicate: (input: In) => Effect.Effect<boolean, E, R>) => Sink<Chunk.Chunk<In>, In, In, E, R>

Source

Since v2.0.0