timeoutWith
signature: timeoutWith(due: number | Date, withObservable: ObservableInput, scheduler: SchedulerLike = async): OperatorFunction
timeoutWith(due: number | Date, withObservable: ObservableInput, scheduler: SchedulerLike = async): OperatorFunction
Subscribe to second Observable if no emission occurs in given time span.
Examples
Example 1: Timeout after 1 second
( StackBlitz )
Additional Resources
timeoutWith 📰 - Official Docs
📁 Source Code: https://github.com/ReactiveX/rxjs/blob/master/src/internal/operators/timeoutWith.ts
Last updated