Observable

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

Observable.Timer Method (TimeSpan, TimeSpan, IScheduler)

Returns an observable sequence that produces a value after due time has elapsed and then each period.

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

Syntax

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

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

Parameters

Return Value

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

See Also

Reference

Observable Class

Timer Overload

System.Reactive.Linq Namespace

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)

Syntax

'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)
public static IObservable<long> Timer(
    TimeSpan dueTime,
    IScheduler scheduler
)
public:
static IObservable<long long>^ Timer(
    TimeSpan dueTime, 
    IScheduler^ scheduler
)
static member Timer : 
        dueTime:TimeSpan * 
        scheduler:IScheduler -> IObservable<int64> 
public static function Timer(
    dueTime : TimeSpan, 
    scheduler : IScheduler
) : IObservable<long>

Parameters

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

Observable.Timer Method (TimeSpan, TimeSpan)

Returns an observable sequence that produces a value after due time has elapsed and then after each period.

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

Syntax

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

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

Parameters

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

  • period
    Type: System.TimeSpan
    The period to produce subsequent values.

Return Value

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

See Also

Reference

Observable Class

Timer Overload

System.Reactive.Linq Namespace

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

Observable.Timer Method (DateTimeOffset, TimeSpan, IScheduler)

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

returnValue = Observable.Timer(dueTime, _
    period, scheduler)
public static IObservable<long> Timer(
    DateTimeOffset dueTime,
    TimeSpan period,
    IScheduler scheduler
)
public:
static IObservable<long long>^ Timer(
    DateTimeOffset dueTime, 
    TimeSpan period, 
    IScheduler^ scheduler
)
static member Timer : 
        dueTime:DateTimeOffset * 
        period:TimeSpan * 
        scheduler:IScheduler -> IObservable<int64> 
public static function Timer(
    dueTime : DateTimeOffset, 
    period : TimeSpan, 
    scheduler : IScheduler
) : 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

Observable.Timer Method (DateTimeOffset)

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

returnValue = Observable.Timer(dueTime)
public static IObservable<long> Timer(
    DateTimeOffset dueTime
)
public:
static IObservable<long long>^ Timer(
    DateTimeOffset dueTime
)
static member Timer : 
        dueTime:DateTimeOffset -> IObservable<int64> 
public static function Timer(
    dueTime : DateTimeOffset
) : 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

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

Observable.Timer Method

Include Protected Members
Include Inherited Members

Returns an observable sequence of timer.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

Overload List

NameDescriptionPublic methodStatic memberTimer(DateTimeOffset)Returns an observable sequence that produces a value at due time.Public methodStatic memberTimer(TimeSpan)Returns an observable sequence that produces a value after the due time has elapsed.Public methodStatic memberTimer(DateTimeOffset, IScheduler)Returns an observable sequence that produces a value at due time.Public methodStatic memberTimer(DateTimeOffset, TimeSpan)Returns an observable sequence that produces a value at due time and then after each period.Public methodStatic memberTimer(TimeSpan, IScheduler)Returns an observable sequence that produces a value after the due time has elapsed.Public methodStatic memberTimer(TimeSpan, TimeSpan)Returns an observable sequence that produces a value after due time has elapsed and then after each period.Public methodStatic memberTimer(DateTimeOffset, TimeSpan, IScheduler)Returns an observable sequence that produces a value at due time and then after each period.Public methodStatic memberTimer(TimeSpan, TimeSpan, IScheduler)Returns an observable sequence that produces a value after due time has elapsed and then each period.Top

See Also

Reference

Observable Class

System.Reactive.Linq Namespace