Observable.Timeout<TSource> Method (IObservable<TSource>, TimeSpan)
Returns either the observable sequence or an TimeoutException if dueTime elapses.
Namespace: System.Reactive.Linq
Assembly: System.Reactive (in System.Reactive.dll)
public static IObservable<TSource> Timeout<TSource>( this IObservable<TSource> source, TimeSpan dueTime )
Type Parameters
- TSource
The type source.
Parameters
- source
- Type: System.IObservable<TSource>
The source sequence to perform a timeout for.
- dueTime
- Type: System.TimeSpan
The time when a timeout occurs.
Return Value
Type: System.IObservable<TSource>The source sequence with a TimeoutException in case of a timeout.