/** * Consumes elements of the stream, passing them to the specified callback, * and terminating consumption when the callback returns `false`. * * @tsplus static effect/core/stream/Stream.Aspects runForEachWhile * @tsplus pipeable effect/core/stream/Stream runForEachWhile */ export function runForEachWhile( f: (a: A) => Effect ) { return (self: Stream): Effect => self.run( Sink.forEachWhile(f) ) }