Skip to content

,System.TimeSpan)} ,System.TimeSpan,System.Reactive.Concurrency.IScheduler)} ,System.TimeSpan,System.IObservable{--0})} ,System.TimeSpan,System.IObservable{--0},System.Reactive.Concurrency.IScheduler)} ,System.DateTimeOffset)} ,System.DateTimeOffset,System.Reactive.Concurrency.IScheduler)} ,System.DateTimeOffset,System.IObservable{--0})} ,System.DateTimeOffset,System.IObservable{--0},System.Reactive.Concurrency.IScheduler)} ,System.Func{--0,System.IObservable{--1}})} ,System.Func{--0,System.IObservable{--1}},System.IObservable{--0})} ,System.IObservable{--1},System.Func{--0,System.IObservable{--1}})} ,System.IObservable{--1},System.Func{--0,System.IObservable{--1}},System.IObservable{--0})}

Observable.Timeout(IObservable, TimeSpan) method

Defined in

Type: Observable Namespace: System.Reactive.Linq Assembly: System.Reactive.dll

Applies to

netstandard2.0, net472

Overloads

  1. public static IObservable<TSource> Timeout<TSource>(this IObservable<TSource> source, TimeSpan dueTime)

  2. public static IObservable<TSource> Timeout<TSource>(this IObservable<TSource> source, TimeSpan dueTime, IScheduler scheduler)

  3. public static IObservable<TSource> Timeout<TSource>(this IObservable<TSource> source, TimeSpan dueTime, IObservable<TSource> other)

  4. public static IObservable<TSource> Timeout<TSource>(this IObservable<TSource> source, TimeSpan dueTime, IObservable<TSource> other, IScheduler scheduler)

  5. public static IObservable<TSource> Timeout<TSource>(this IObservable<TSource> source, DateTimeOffset dueTime)

  6. public static IObservable<TSource> Timeout<TSource>(this IObservable<TSource> source, DateTimeOffset dueTime, IScheduler scheduler)

  7. public static IObservable<TSource> Timeout<TSource>(this IObservable<TSource> source, DateTimeOffset dueTime, IObservable<TSource> other)

  8. public static IObservable<TSource> Timeout<TSource>(this IObservable<TSource> source, DateTimeOffset dueTime, IObservable<TSource> other, IScheduler scheduler)

  9. public static IObservable<TSource> Timeout<TSource, TTimeout>(this IObservable<TSource> source, Func<TSource, IObservable<TTimeout>> timeoutDurationSelector)

  10. public static IObservable<TSource> Timeout<TSource, TTimeout>(this IObservable<TSource> source, Func<TSource, IObservable<TTimeout>> timeoutDurationSelector, IObservable<TSource> other)

  11. public static IObservable<TSource> Timeout<TSource, TTimeout>(this IObservable<TSource> source, IObservable<TTimeout> firstTimeout, Func<TSource, IObservable<TTimeout>> timeoutDurationSelector)

  12. public static IObservable<TSource> Timeout<TSource, TTimeout>(this IObservable<TSource> source, IObservable<TTimeout> firstTimeout, Func<TSource, IObservable<TTimeout>> timeoutDurationSelector, IObservable<TSource> other)

1. Overload

public static IObservable<TSource> Timeout<TSource>(this IObservable<TSource> source, TimeSpan dueTime)

Type parameters

NameDescription
TSource--

Parameters

NameTypeDescription
sourceIObservable (opens in a new tab)--
dueTimeTimeSpan (opens in a new tab)--

Returns: IObservable (opens in a new tab)

2. Overload

public static IObservable<TSource> Timeout<TSource>(this IObservable<TSource> source, TimeSpan dueTime, IScheduler scheduler)

Type parameters

NameDescription
TSource--

Parameters

NameTypeDescription
sourceIObservable (opens in a new tab)--
dueTimeTimeSpan (opens in a new tab)--
scheduler[IScheduler](#--

Returns: IObservable (opens in a new tab)

3. Overload

public static IObservable<TSource> Timeout<TSource>(this IObservable<TSource> source, TimeSpan dueTime, IObservable<TSource> other)

Type parameters

NameDescription
TSource--

Parameters

NameTypeDescription
sourceIObservable (opens in a new tab)--
dueTimeTimeSpan (opens in a new tab)--
otherIObservable (opens in a new tab)--

Returns: IObservable (opens in a new tab)

4. Overload

public static IObservable<TSource> Timeout<TSource>(this IObservable<TSource> source, TimeSpan dueTime, IObservable<TSource> other, IScheduler scheduler)

Type parameters

NameDescription
TSource--

Parameters

NameTypeDescription
sourceIObservable (opens in a new tab)--
dueTimeTimeSpan (opens in a new tab)--
otherIObservable (opens in a new tab)--
scheduler[IScheduler](#--

Returns: IObservable (opens in a new tab)

5. Overload

public static IObservable<TSource> Timeout<TSource>(this IObservable<TSource> source, DateTimeOffset dueTime)

Type parameters

NameDescription
TSource--

Parameters

NameTypeDescription
sourceIObservable (opens in a new tab)--
dueTimeDateTimeOffset (opens in a new tab)--

Returns: IObservable (opens in a new tab)

6. Overload

public static IObservable<TSource> Timeout<TSource>(this IObservable<TSource> source, DateTimeOffset dueTime, IScheduler scheduler)

Type parameters

NameDescription
TSource--

Parameters

NameTypeDescription
sourceIObservable (opens in a new tab)--
dueTimeDateTimeOffset (opens in a new tab)--
scheduler[IScheduler](#--

Returns: IObservable (opens in a new tab)

7. Overload

public static IObservable<TSource> Timeout<TSource>(this IObservable<TSource> source, DateTimeOffset dueTime, IObservable<TSource> other)

Type parameters

NameDescription
TSource--

Parameters

NameTypeDescription
sourceIObservable (opens in a new tab)--
dueTimeDateTimeOffset (opens in a new tab)--
otherIObservable (opens in a new tab)--

Returns: IObservable (opens in a new tab)

8. Overload

public static IObservable<TSource> Timeout<TSource>(this IObservable<TSource> source, DateTimeOffset dueTime, IObservable<TSource> other, IScheduler scheduler)

Type parameters

NameDescription
TSource--

Parameters

NameTypeDescription
sourceIObservable (opens in a new tab)--
dueTimeDateTimeOffset (opens in a new tab)--
otherIObservable (opens in a new tab)--
scheduler[IScheduler](#--

Returns: IObservable (opens in a new tab)

9. Overload

public static IObservable<TSource> Timeout<TSource, TTimeout>(this IObservable<TSource> source, Func<TSource, IObservable<TTimeout>> timeoutDurationSelector)

Type parameters

NameDescription
TSource--
TTimeout--

Parameters

NameTypeDescription
sourceIObservable (opens in a new tab)--
timeoutDurationSelectorFunc> (opens in a new tab)--

Returns: IObservable (opens in a new tab)

10. Overload

public static IObservable<TSource> Timeout<TSource, TTimeout>(this IObservable<TSource> source, Func<TSource, IObservable<TTimeout>> timeoutDurationSelector, IObservable<TSource> other)

Type parameters

NameDescription
TSource--
TTimeout--

Parameters

NameTypeDescription
sourceIObservable (opens in a new tab)--
timeoutDurationSelectorFunc> (opens in a new tab)--
otherIObservable (opens in a new tab)--

Returns: IObservable (opens in a new tab)

11. Overload

public static IObservable<TSource> Timeout<TSource, TTimeout>(this IObservable<TSource> source, IObservable<TTimeout> firstTimeout, Func<TSource, IObservable<TTimeout>> timeoutDurationSelector)

Type parameters

NameDescription
TSource--
TTimeout--

Parameters

NameTypeDescription
sourceIObservable (opens in a new tab)--
firstTimeoutIObservable (opens in a new tab)--
timeoutDurationSelectorFunc> (opens in a new tab)--

Returns: IObservable (opens in a new tab)

12. Overload

public static IObservable<TSource> Timeout<TSource, TTimeout>(this IObservable<TSource> source, IObservable<TTimeout> firstTimeout, Func<TSource, IObservable<TTimeout>> timeoutDurationSelector, IObservable<TSource> other)

Type parameters

NameDescription
TSource--
TTimeout--

Parameters

NameTypeDescription
sourceIObservable (opens in a new tab)--
firstTimeoutIObservable (opens in a new tab)--
timeoutDurationSelectorFunc> (opens in a new tab)--
otherIObservable (opens in a new tab)--

Returns: IObservable (opens in a new tab)