The recording of the first ever ReactiveUI virtual conference is available on our YouTube Channel.

VirtualTimeScheduler<TAbsolute, TRelative>()s

VirtualTimeScheduler<TAbsolute, TRelative> Methods

Include Protected Members
Include Inherited Members

The [VirtualTimeScheduler<TAbsolute, TRelative>](VirtualTimeScheduler/VirtualTimeScheduler(TAbsolute,) type exposes the following members.

Methods

NameDescriptionProtected methodAddAdds a relative time to an absolute time value. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>Public methodAdvanceByAdvances the scheduler's clock by the specified relative time, running all work scheduled for that timespan. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>Public methodAdvanceToAdvances the scheduler's clock to the specified time, running all work till that point. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>Public methodEquals(Inherited from Object.)Protected methodFinalize(Inherited from Object.)Public methodGetHashCode(Inherited from Object.)Protected method[GetNext](GetNext/VirtualTimeScheduler(TAbsolute,)Gets the next scheduled item to be executed. (Overrides VirtualTimeSchedulerBase<TAbsolute, TRelative>.GetNext()Public methodGetType(Inherited from Object.)Protected methodMemberwiseClone(Inherited from Object.)Public methodSchedule(TState, Func<IScheduler, TState, IDisposable>)Schedules an action to be executed. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>Public methodSchedule(TState, DateTimeOffset, Func<IScheduler, TState, IDisposable>)Schedules an action to be executed at dueTime. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>Public methodSchedule(TState, TimeSpan, Func<IScheduler, TState, IDisposable>)Schedules an action to be executed after dueTime. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>Public methodScheduleAbsolute(TState, TAbsolute, Func<IScheduler, TState, IDisposable>)Schedules an action to be executed at dueTime. (Overrides VirtualTimeSchedulerBase<TAbsolute, TRelative>.ScheduleAbsolute(TState, TAbsolute, Func<IScheduler, TState, IDisposable>).)Public methodScheduleAbsolute(TState, TAbsolute, Func<IScheduler, TState, IDisposable>)Schedules an action to be executed at dueTime. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>Public methodScheduleRelativeSchedules an action to be executed at dueTime. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>Public method[Start](Start/VirtualTimeSchedulerBase(TAbsolute,)Starts the virtual time scheduler. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>Public method[Stop](Stop/VirtualTimeSchedulerBase(TAbsolute,)Stops the virtual time scheduler. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>Protected methodToDateTimeOffsetConverts the absolute time value to a DateTimeOffset value. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>Protected methodToRelativeConverts the TimeSpan value to a relative time value. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>Public methodToString(Inherited from Object.)Top

See Also

Reference

[VirtualTimeScheduler<TAbsolute, TRelative> Class](VirtualTimeScheduler/VirtualTimeScheduler(TAbsolute,)

System.Reactive.Concurrency Namespace

VirtualTimeScheduler<TAbsolute, TRelative> Properties

Include Protected Members
Include Inherited Members

The [VirtualTimeScheduler<TAbsolute, TRelative>](VirtualTimeScheduler/VirtualTimeScheduler(TAbsolute,) type exposes the following members.

Properties

NameDescriptionPublic property[Clock](Clock/VirtualTimeSchedulerBase(TAbsolute,)Gets the scheduler's absolute time clock value. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>Protected property[Comparer](Comparer/VirtualTimeSchedulerBase(TAbsolute,)Gets the comparer used to compare absolute time values. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>Public property[IsEnabled](IsEnabled/VirtualTimeSchedulerBase(TAbsolute,)Gets whether the scheduler is enabled to run work. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>Public property[Now](Now/VirtualTimeSchedulerBase(TAbsolute,)Gets the scheduler's notion of current time. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>Top

See Also

Reference

[VirtualTimeScheduler<TAbsolute, TRelative> Class](VirtualTimeScheduler/VirtualTimeScheduler(TAbsolute,)

System.Reactive.Concurrency Namespace

VirtualTimeScheduler<TAbsolute, TRelative> Constructor

Include Protected Members
Include Inherited Members

Initializes a new instance of the [VirtualTimeScheduler<TAbsolute, TRelative>](VirtualTimeScheduler/VirtualTimeScheduler(TAbsolute,) class.

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

Overload List

NameDescriptionProtected method[VirtualTimeScheduler<TAbsolute, TRelative>()](VirtualTimeScheduler/VirtualTimeScheduler(TAbsolute,)Creates a new virtual time scheduler with the default value of TAbsolute for the initial clock value.Protected methodVirtualTimeScheduler<TAbsolute, TRelative>(TAbsolute, IComparer)Creates a new virtual time scheduler.Top

See Also

Reference

[VirtualTimeScheduler<TAbsolute, TRelative> Class](VirtualTimeScheduler/VirtualTimeScheduler(TAbsolute,)

System.Reactive.Concurrency Namespace

VirtualTimeScheduler<TAbsolute, TRelative> Class

Represents the base class for virtual time schedulers using a priority queue for scheduled items.

Inheritance Hierarchy

System.Object
  [System.Reactive.Concurrency.VirtualTimeSchedulerBase](VirtualTimeSchedulerBase/VirtualTimeSchedulerBase(TAbsolute,)<TAbsolute, TRelative>
    System.Reactive.Concurrency.VirtualTimeScheduler<TAbsolute, TRelative>
      Microsoft.Reactive.Testing.TestScheduler

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

Syntax

'Declaration
Public MustInherit Class VirtualTimeScheduler(Of TAbsolute, TRelative) _
    Inherits VirtualTimeSchedulerBase(Of TAbsolute, TRelative)
'Usage
Dim instance As VirtualTimeScheduler(Of TAbsolute, TRelative)
public abstract class VirtualTimeScheduler<TAbsolute, TRelative> : VirtualTimeSchedulerBase<TAbsolute, TRelative>
generic<typename TAbsolute, typename TRelative>
public ref class VirtualTimeScheduler abstract : public VirtualTimeSchedulerBase<TAbsolute, TRelative>
[<AbstractClassAttribute>]
type VirtualTimeScheduler<'TAbsolute, 'TRelative> =  
    class
        inherit VirtualTimeSchedulerBase<'TAbsolute, 'TRelative>
    end
JScript does not support generic types and methods.

Type Parameters

  • TAbsolute
    The absolute time argument type.

  • TRelative
    The relative time argument type.

The VirtualTimeScheduler<TAbsolute, TRelative> type exposes the following members.

Constructors

NameDescriptionProtected method[VirtualTimeScheduler<TAbsolute, TRelative>()](VirtualTimeScheduler/VirtualTimeScheduler(TAbsolute,)Creates a new virtual time scheduler with the default value of TAbsolute for the initial clock value.Protected methodVirtualTimeScheduler<TAbsolute, TRelative>(TAbsolute, IComparer)Creates a new virtual time scheduler.Top

Properties

NameDescriptionPublic property[Clock](Clock/VirtualTimeSchedulerBase(TAbsolute,)Gets the scheduler's absolute time clock value. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>Protected property[Comparer](Comparer/VirtualTimeSchedulerBase(TAbsolute,)Gets the comparer used to compare absolute time values. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>Public property[IsEnabled](IsEnabled/VirtualTimeSchedulerBase(TAbsolute,)Gets whether the scheduler is enabled to run work. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>Public property[Now](Now/VirtualTimeSchedulerBase(TAbsolute,)Gets the scheduler's notion of current time. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>Top

Methods

NameDescriptionProtected methodAddAdds a relative time to an absolute time value. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>Public methodAdvanceByAdvances the scheduler's clock by the specified relative time, running all work scheduled for that timespan. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>Public methodAdvanceToAdvances the scheduler's clock to the specified time, running all work till that point. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>Public methodEquals(Inherited from Object.)Protected methodFinalize(Inherited from Object.)Public methodGetHashCode(Inherited from Object.)Protected method[GetNext](GetNext/VirtualTimeScheduler(TAbsolute,)Gets the next scheduled item to be executed. (Overrides VirtualTimeSchedulerBase<TAbsolute, TRelative>.GetNext()Public methodGetType(Inherited from Object.)Protected methodMemberwiseClone(Inherited from Object.)Public methodSchedule(TState, Func<IScheduler, TState, IDisposable>)Schedules an action to be executed. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>Public methodSchedule(TState, DateTimeOffset, Func<IScheduler, TState, IDisposable>)Schedules an action to be executed at dueTime. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>Public methodSchedule(TState, TimeSpan, Func<IScheduler, TState, IDisposable>)Schedules an action to be executed after dueTime. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>Public methodScheduleAbsolute(TState, TAbsolute, Func<IScheduler, TState, IDisposable>)Schedules an action to be executed at dueTime. (Overrides VirtualTimeSchedulerBase<TAbsolute, TRelative>.ScheduleAbsolute(TState, TAbsolute, Func<IScheduler, TState, IDisposable>).)Public methodScheduleAbsolute(TState, TAbsolute, Func<IScheduler, TState, IDisposable>)Schedules an action to be executed at dueTime. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>Public methodScheduleRelativeSchedules an action to be executed at dueTime. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>Public method[Start](Start/VirtualTimeSchedulerBase(TAbsolute,)Starts the virtual time scheduler. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>Public method[Stop](Stop/VirtualTimeSchedulerBase(TAbsolute,)Stops the virtual time scheduler. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>Protected methodToDateTimeOffsetConverts the absolute time value to a DateTimeOffset value. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>Protected methodToRelativeConverts the TimeSpan value to a relative time value. (Inherited from VirtualTimeSchedulerBase<TAbsolute, TRelative>Public methodToString(Inherited from Object.)Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

System.Reactive.Concurrency Namespace

VirtualTimeScheduler<TAbsolute, TRelative> Constructor (TAbsolute, IComparer<TAbsolute>)

Creates a new virtual time scheduler.

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

Syntax

'Declaration
Protected Sub New ( _
    initialClock As TAbsolute, _
    comparer As IComparer(Of TAbsolute) _
)
'Usage
Dim initialClock As TAbsolute
Dim comparer As IComparer(Of TAbsolute)

Dim instance As New VirtualTimeScheduler(initialClock, _
    comparer)
protected VirtualTimeScheduler(
    TAbsolute initialClock,
    IComparer<TAbsolute> comparer
)
protected:
VirtualTimeScheduler(
    TAbsolute initialClock, 
    IComparer<TAbsolute>^ comparer
)
new : 
        initialClock:'TAbsolute * 
        comparer:IComparer<'TAbsolute> -> VirtualTimeScheduler
protected function VirtualTimeScheduler(
    initialClock : TAbsolute, 
    comparer : IComparer<TAbsolute>
)

Parameters

  • initialClock
    Type: [TAbsolute](VirtualTimeScheduler/VirtualTimeScheduler(TAbsolute,)
    The initial value for the clock.

  • comparer
    Type: System.Collections.Generic.IComparer<[TAbsolute](VirtualTimeScheduler/VirtualTimeScheduler(TAbsolute,)>
    The comparer to determine causality of events based on absolute time.

See Also

Reference

[VirtualTimeScheduler<TAbsolute, TRelative> Class](VirtualTimeScheduler/VirtualTimeScheduler(TAbsolute,)

[VirtualTimeScheduler<TAbsolute, TRelative> Overload](VirtualTimeScheduler/VirtualTimeScheduler(TAbsolute,)

System.Reactive.Concurrency Namespace

VirtualTimeScheduler<TAbsolute, TRelative> Constructor

Creates a new virtual time scheduler with the default value of TAbsolute for the initial clock value.

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

Syntax

'Declaration
Protected Sub New
'Usage

Dim instance As New VirtualTimeScheduler()
protected VirtualTimeScheduler()
protected:
VirtualTimeScheduler()
new : unit -> VirtualTimeScheduler
protected function VirtualTimeScheduler()

See Also

Reference

[VirtualTimeScheduler<TAbsolute, TRelative> Class](VirtualTimeScheduler/VirtualTimeScheduler(TAbsolute,)

[VirtualTimeScheduler<TAbsolute, TRelative> Overload](VirtualTimeScheduler/VirtualTimeScheduler(TAbsolute,)

System.Reactive.Concurrency Namespace