timeout
signature: timeout(due: number, scheduler: Scheduler): Observable
timeout(due: number, scheduler: Scheduler): Observable
Error if no value is emitted before specified duration
Examples
Example 1: Timeout after 2.5 seconds
( StackBlitz | jsBin | jsFiddle )
Additional Resources
timeout 📰 - Official Docs
📁 Source Code: https://github.com/ReactiveX/rxjs/blob/master/src/internal/operators/timeout.ts
Last updated