Rx\Observable::takeUntil PHP Method

takeUntil() public method

Returns the values from the source observable sequence until the other observable sequence produces a value.
public takeUntil ( rx\ObservableInterface $other ) : Rx\Observable\AnonymousObservable
$other rx\ObservableInterface - other Observable sequence that terminates propagation of elements of the source sequence.
return Rx\Observable\AnonymousObservable - An observable sequence containing the elements of the source sequence up to the point the other sequence interrupted further propagation.
    public function takeUntil(ObservableInterface $other)
    {
        return $this->lift(function () use($other) {
            return new TakeUntilOperator($other);
        });
    }