src/Observable.php
public function timeout(int $timeout, ObservableInterface $timeoutObservable = null, AsyncSchedulerInterface $scheduler = null): Observable
    {
        return $this->lift(function () use ($timeout, $timeoutObservable, $scheduler) {
            return new TimeoutOperator($timeout, $timeoutObservable, $scheduler ?: Scheduler::getAsync());
        });
    }
public function timeout(int $timeout, ObservableInterface $timeoutObservable = null, AsyncSchedulerInterface $scheduler = null): Observable
    {
        return $this->lift(function () use ($timeout, $timeoutObservable, $scheduler) {
            return new TimeoutOperator($timeout, $timeoutObservable, $scheduler ?: Scheduler::getAsync());
        });
    }
public function timeout ( int $ timeout , ObservableInterface $ timeoutObservable = null , AsyncSchedulerInterface $ scheduler = null ) : Observable { return $ this -> lift ( function ( ) use ( $ timeout , $ timeoutObservable , $ scheduler ) { return new TimeoutOperator ( $ timeout , $ timeoutObservable , $ scheduler ? : Scheduler :: getAsync ( ) ) ; } ) ; }
Errors the observable sequence if no item is emitted in the specified time.
When a timeout occurs, this operator errors with an instance of Rx\Exception\TimeoutException

@param $timeout
@param ObservableInterface $timeoutObservable
@param AsyncSchedulerInterface $scheduler
@return Observable

@demo timeout/timeout.php
@operator
@reactivex timeout
Errors the observable sequence if no item is emitted in the specified time . When a timeout occurs this operator errors with an instance of Rx \ Exception \ TimeoutException