Bagikan melalui


Observable.Timer Method (TimeSpan)

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)

Syntax

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

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

Parameters

  • dueTime
    Type: System.TimeSpan
    The relative time at which to produce the value.

Return Value

Type: System.IObservable<Int64>
An observable sequence that produces a value after the due time has elapsed.

See Also

Reference

Observable Class

Timer Overload

System.Reactive.Linq Namespace