effect-io-ai

Package: effect
Module: Sink

Sink.takeUntilEffect

Collects input elements effectfully until the predicate returns true, including the matching element in the result.

Details

If the predicate effect fails, the sink fails with the same error.

Signature

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

Source

Since v4.0.0