Skip to content

Qbservable.Timer(IQbservableProvider, DateTimeOffset) method

Defined in

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

Applies to

netstandard2.0

Overloads

  • 1. public static IQbservable<long> Timer(this IQbservableProvider provider, DateTimeOffset dueTime)
  • 2. public static IQbservable<long> Timer(this IQbservableProvider provider, DateTimeOffset dueTime, TimeSpan period)
  • 3. public static IQbservable<long> Timer(this IQbservableProvider provider, DateTimeOffset dueTime, TimeSpan period, IScheduler scheduler)
  • 4. public static IQbservable<long> Timer(this IQbservableProvider provider, DateTimeOffset dueTime, IScheduler scheduler)
  • 5. public static IQbservable<long> Timer(this IQbservableProvider provider, TimeSpan dueTime)
  • 6. public static IQbservable<long> Timer(this IQbservableProvider provider, TimeSpan dueTime, TimeSpan period)
  • 7. public static IQbservable<long> Timer(this IQbservableProvider provider, TimeSpan dueTime, TimeSpan period, IScheduler scheduler)
  • 8. public static IQbservable<long> Timer(this IQbservableProvider provider, TimeSpan dueTime, IScheduler scheduler)

1. Overload

public static IQbservable<long> Timer(this IQbservableProvider provider, DateTimeOffset dueTime)

Summary: Returns an observable sequence that produces a single value at the specified absolute due time.

Parameters

NameTypeDescription
provider[IQbservableProvider](#Query provider used to construct the [IQbservable](# data source.
dueTimeDateTimeOffsetAbsolute time at which to produce the value. If this value is less than or equal to DateTimeOffset.UtcNow, the timer will fire as soon as possible.

Returns: IQbservable -- An observable sequence that produces a value at due time.

2. Overload

public static IQbservable<long> Timer(this IQbservableProvider provider, DateTimeOffset dueTime, TimeSpan period)

Summary: Returns an observable sequence that periodically produces a value starting at the specified initial absolute due time.

Parameters

NameTypeDescription
provider[IQbservableProvider](#Query provider used to construct the [IQbservable](# data source.
dueTimeDateTimeOffsetAbsolute time at which to produce the first value. If this value is less than or equal to DateTimeOffset.UtcNow, the timer will fire as soon as possible.
periodTimeSpanPeriod to produce subsequent values. If this value is equal to TimeSpan.Zero, the timer will recur as fast as possible.

Returns: IQbservable -- An observable sequence that produces a value at due time and then after each period.

Exceptions

TypeCondition
System.ArgumentOutOfRangeExceptionperiod is less than TimeSpan.Zero.

3. Overload

public static IQbservable<long> Timer(this IQbservableProvider provider, DateTimeOffset dueTime, TimeSpan period, IScheduler scheduler)

Summary: Returns an observable sequence that periodically produces a value starting at the specified initial absolute due time, using the specified scheduler to run timers.

Parameters

NameTypeDescription
provider[IQbservableProvider](#Query provider used to construct the [IQbservable](# data source.
dueTimeDateTimeOffsetAbsolute time at which to produce the first value. If this value is less than or equal to DateTimeOffset.UtcNow, the timer will fire as soon as possible.
periodTimeSpanPeriod to produce subsequent values. If this value is equal to TimeSpan.Zero, the timer will recur as fast as possible.
scheduler[IScheduler](#Scheduler to run timers on.

Returns: IQbservable -- An observable sequence that produces a value at due time and then after each period.

Exceptions

TypeCondition
System.ArgumentOutOfRangeExceptionperiod is less than TimeSpan.Zero.
System.ArgumentNullExceptionscheduler is null.

4. Overload

public static IQbservable<long> Timer(this IQbservableProvider provider, DateTimeOffset dueTime, IScheduler scheduler)

Summary: Returns an observable sequence that produces a single value at the specified absolute due time, using the specified scheduler to run the timer.

Parameters

NameTypeDescription
provider[IQbservableProvider](#Query provider used to construct the [IQbservable](# data source.
dueTimeDateTimeOffsetAbsolute time at which to produce the value. If this value is less than or equal to DateTimeOffset.UtcNow, the timer will fire as soon as possible.
scheduler[IScheduler](#Scheduler to run the timer on.

Returns: IQbservable -- An observable sequence that produces a value at due time.

Exceptions

TypeCondition
System.ArgumentNullExceptionscheduler is null.

5. Overload

public static IQbservable<long> Timer(this IQbservableProvider provider, TimeSpan dueTime)

Summary: Returns an observable sequence that produces a single value after the specified relative due time has elapsed.

Parameters

NameTypeDescription
provider[IQbservableProvider](#Query provider used to construct the [IQbservable](# data source.
dueTimeTimeSpanRelative time at which to produce the value. If this value is less than or equal to TimeSpan.Zero, the timer will fire as soon as possible.

Returns: IQbservable -- An observable sequence that produces a value after the due time has elapsed.

6. Overload

public static IQbservable<long> Timer(this IQbservableProvider provider, TimeSpan dueTime, TimeSpan period)

Summary: Returns an observable sequence that periodically produces a value after the specified initial relative due time has elapsed.

Parameters

NameTypeDescription
provider[IQbservableProvider](#Query provider used to construct the [IQbservable](# data source.
dueTimeTimeSpanRelative time at which to produce the first value. If this value is less than or equal to TimeSpan.Zero, the timer will fire as soon as possible.
periodTimeSpanPeriod to produce subsequent values. If this value is equal to TimeSpan.Zero, the timer will recur as fast as possible.

Returns: IQbservable -- An observable sequence that produces a value after due time has elapsed and then after each period.

Exceptions

TypeCondition
System.ArgumentOutOfRangeExceptionperiod is less than TimeSpan.Zero.

7. Overload

public static IQbservable<long> Timer(this IQbservableProvider provider, TimeSpan dueTime, TimeSpan period, IScheduler scheduler)

Summary: Returns an observable sequence that periodically produces a value after the specified initial relative due time has elapsed, using the specified scheduler to run timers.

Parameters

NameTypeDescription
provider[IQbservableProvider](#Query provider used to construct the [IQbservable](# data source.
dueTimeTimeSpanRelative time at which to produce the first value. If this value is less than or equal to TimeSpan.Zero, the timer will fire as soon as possible.
periodTimeSpanPeriod to produce subsequent values. If this value is equal to TimeSpan.Zero, the timer will recur as fast as possible.
scheduler[IScheduler](#Scheduler to run timers on.

Returns: IQbservable -- An observable sequence that produces a value after due time has elapsed and then each period.

Exceptions

TypeCondition
System.ArgumentOutOfRangeExceptionperiod is less than TimeSpan.Zero.
System.ArgumentNullExceptionscheduler is null.

8. Overload

public static IQbservable<long> Timer(this IQbservableProvider provider, TimeSpan dueTime, IScheduler scheduler)

Summary: Returns an observable sequence that produces a single value after the specified relative due time has elapsed, using the specified scheduler to run the timer.

Parameters

NameTypeDescription
provider[IQbservableProvider](#Query provider used to construct the [IQbservable](# data source.
dueTimeTimeSpanRelative time at which to produce the value. If this value is less than or equal to TimeSpan.Zero, the timer will fire as soon as possible.
scheduler[IScheduler](#Scheduler to run the timer on.

Returns: IQbservable -- An observable sequence that produces a value after the due time has elapsed.

Exceptions

TypeCondition
System.ArgumentNullExceptionscheduler is null.