TakeUntilExtension<T> extension

Extends the Stream class with the ability receive events from the source Stream until another Stream produces a value.

on

Methods

takeUntil<S>(Stream<S> otherStream) Stream<T>

Available on Stream<T>, provided by the TakeUntilExtension extension

Returns the values from the source Stream sequence until the other Stream sequence produces a value.