Share via


Observable.Timer Method (DateTimeOffset, TimeSpan)

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 _
) As IObservable(Of Long)
'Usage
Dim dueTime As DateTimeOffset
Dim period As TimeSpan
Dim returnValue As IObservable(Of Long)

returnValue = Observable.Timer(dueTime, _
    period)
public static IObservable<long> Timer(
    DateTimeOffset dueTime,
    TimeSpan period
)
public:
static IObservable<long long>^ Timer(
    DateTimeOffset dueTime, 
    TimeSpan period
)
static member Timer : 
        dueTime:DateTimeOffset * 
        period:TimeSpan -> IObservable<int64> 
public static function Timer(
    dueTime : DateTimeOffset, 
    period : TimeSpan
) : IObservable<long>

Parameters

Return Value

Type: System.IObservable<Int64>
An observable sequence that produces a value at due time and then after each period.

See Also

Reference

Observable Class

Timer Overload

System.Reactive.Linq Namespace