Bagikan melalui


Observable.Timer Method (DateTimeOffset, IScheduler)

Returns an observable sequence that produces a value at due time.

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

Syntax

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

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

Parameters

Return Value

Type: System.IObservable<Int64>
An observable sequence that produces a value at due time.

See Also

Reference

Observable Class

Timer Overload

System.Reactive.Linq Namespace