Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Returns an observable sequence that produces a value at due time and then after each period.
Namespace: System.Reactive.Linq
Assembly: System.Reactive (in System.Reactive.dll)
Syntax
'Declaration
Public Shared Function Timer ( _
dueTime As DateTimeOffset, _
period As TimeSpan, _
scheduler As IScheduler _
) As IObservable(Of Long)
'Usage
Dim dueTime As DateTimeOffset
Dim period As TimeSpan
Dim scheduler As IScheduler
Dim returnValue As IObservable(Of Long)
returnValue = Observable.Timer(dueTime, _
period, scheduler)
public static IObservable<long> Timer(
DateTimeOffset dueTime,
TimeSpan period,
IScheduler scheduler
)
public:
static IObservable<long long>^ Timer(
DateTimeOffset dueTime,
TimeSpan period,
IScheduler^ scheduler
)
static member Timer :
dueTime:DateTimeOffset *
period:TimeSpan *
scheduler:IScheduler -> IObservable<int64>
public static function Timer(
dueTime : DateTimeOffset,
period : TimeSpan,
scheduler : IScheduler
) : IObservable<long>
Parameters
- dueTime
Type: System.DateTimeOffset
The absolute time at which to produce the first value.
- period
Type: System.TimeSpan
The period to produce subsequent values.
- scheduler
Type: System.Reactive.Concurrency.IScheduler
The scheduler to run the timer on.
Return Value
Type: System.IObservable<Int64>
An observable sequence that produces a value at due time and then after each period.