Observable.Interval Method (TimeSpan)

Returns an observable sequence that produces a value after each period.

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

Syntax

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

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

Parameters

  • period
    Type: System.TimeSpan
    The period for producing the values in the resulting sequence.

Return Value

Type: System.IObservable<Int64>
An observable sequence that produces a value after each period.

See Also

Reference

Observable Class

Interval Overload

System.Reactive.Linq Namespace