effect-io-ai

Package: effect
Module: Stream

Stream.dropWhileEffect

Drops all elements of the stream for as long as the specified predicate produces an effect that evalutates to true

Signature

declare const dropWhileEffect: { <A, E2, R2>(predicate: (a: NoInfer<A>) => Effect.Effect<boolean, E2, R2>): <E, R>(self: Stream<A, E, R>) => Stream<A, E2 | E, R2 | R>; <A, E, R, E2, R2>(self: Stream<A, E, R>, predicate: (a: A) => Effect.Effect<boolean, E2, R2>): Stream<A, E | E2, R | R2>; }

Source

Since v2.0.0