Timer Method (TimeSpan, IScheduler)

Observable.Timer Method (TimeSpan, IScheduler)

Returns an observable sequence that produces a value after the due time has elapsed.

Namespace:  System.Reactive.Linq
Assembly:  System.Reactive (in System.Reactive.dll)

'Declaration
Public Shared Function Timer ( _
	dueTime As TimeSpan, _
	scheduler As IScheduler _
) As IObservable(Of Long)
'Usage
Dim dueTime As TimeSpan
Dim scheduler As IScheduler
Dim returnValue As IObservable(Of Long)

returnValue = Observable.Timer(dueTime, _
	scheduler)

Parameters

dueTime
Type: System.TimeSpan
The relative time at which to produce the value.
scheduler
Type: System.Reactive.Concurrency.IScheduler
The scheduler to run the timer on.

Return Value

Type: System.IObservable(Of Int64)
An observable sequence that produces a value after the due time has elapsed.
Show:
© 2016 Microsoft