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

net8.0, net8.0-windows10.0.19041, netstandard2.0

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--
dueTimeTimeSpan--

Returns: IObservable

2. Overload

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

Type parameters

NameDescription
TSource--

Parameters

NameTypeDescription
sourceIObservable--
dueTimeTimeSpan--
scheduler[IScheduler](#--

Returns: IObservable

3. Overload

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

Type parameters

NameDescription
TSource--

Parameters

NameTypeDescription
sourceIObservable--
dueTimeTimeSpan--
otherIObservable--

Returns: IObservable

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--
dueTimeTimeSpan--
otherIObservable--
scheduler[IScheduler](#--

Returns: IObservable

5. Overload

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

Type parameters

NameDescription
TSource--

Parameters

NameTypeDescription
sourceIObservable--
dueTimeDateTimeOffset--

Returns: IObservable

6. Overload

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

Type parameters

NameDescription
TSource--

Parameters

NameTypeDescription
sourceIObservable--
dueTimeDateTimeOffset--
scheduler[IScheduler](#--

Returns: IObservable

7. Overload

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

Type parameters

NameDescription
TSource--

Parameters

NameTypeDescription
sourceIObservable--
dueTimeDateTimeOffset--
otherIObservable--

Returns: IObservable

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--
dueTimeDateTimeOffset--
otherIObservable--
scheduler[IScheduler](#--

Returns: IObservable

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--
timeoutDurationSelectorFunc>--

Returns: IObservable

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--
timeoutDurationSelectorFunc>--
otherIObservable--

Returns: IObservable

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--
firstTimeoutIObservable--
timeoutDurationSelectorFunc>--

Returns: IObservable

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--
firstTimeoutIObservable--
timeoutDurationSelectorFunc>--
otherIObservable--

Returns: IObservable