Rx\Observable::repeatWhen PHP Method

repeatWhen() public method

An onCompleted notification from the source will result in the emission of a count item to the Observable provided as an argument to the notificationHandler function. If that Observable calls onComplete or onError then repeatWhen will call onCompleted or onError on the child subscription. Otherwise, this Observable will resubscribe to the source observable.
public repeatWhen ( callable $notifier ) : Rx\Observable\AnonymousObservable | Rx\Observable\EmptyObservable
$notifier callable
return Rx\Observable\AnonymousObservable | Rx\Observable\EmptyObservable
    public function repeatWhen(callable $notifier)
    {
        return $this->lift(function () use($notifier) {
            return new RepeatWhenOperator($notifier);
        });
    }