Rx.Observable.prototype.timeout(dueTime, [other], [scheduler])
Returns the source observable sequence or the other observable sequence if dueTime elapses.
参数
dueTime
(Date | Number): Absolute (specified as a Date object) or relative time (specified as an integer denoting milliseconds) when a timeout occurs.[other]
(Observable
): Sequence or Promise to return in case of a timeout. If not specified, a timeout error throwing sequence will be used.[scheduler=Rx.Observable.timeout]
(Scheduler
): Scheduler to run the timeout timers on. If not specified, the timeout scheduler is used.
返回值
(Observable
): An observable sequence with time interval information on values.