src/Observable.php
public function repeat(int $count = -1): Observable
    {
        if ($count === 0) {
            return self::empty();
        }

        return $this->lift(function () use ($count) {
            return new RepeatOperator($count);
        });
    }
public function repeat(int $count = -1): Observable
    {
        if ($count === 0) {
            return self::empty();
        }

        return $this->lift(function () use ($count) {
            return new RepeatOperator($count);
        });
    }
public function repeat ( int $ count = - 1 ) : Observable { if ( $ count === 0 ) { return self :: empty ( ) ; } return $ this -> lift ( function ( ) use ( $ count ) { return new RepeatOperator ( $ count ) ; } ) ; }
Generates an observable sequence that repeats the given element the specified number of times.

@param int $count
@return Observable|EmptyObservable

@demo repeat/repeat.php
@operator
@reactivex repeat
Generates an observable sequence that repeats the given element the specified number of times .