Class VirtualTimeSchedulerExtensions
Provides a set of extension methods for virtual time scheduling.
Inherited Members
Namespace: System.Reactive.Concurrency
Assembly: System.Reactive.Linq.dll
Syntax
public static class VirtualTimeSchedulerExtensions
Methods
| Improve this Doc View SourceScheduleAbsolute<TAbsolute, TRelative>(VirtualTimeSchedulerBase<TAbsolute, TRelative>, TAbsolute, Action)
Schedules an action to be executed at dueTime.
Declaration
public static IDisposable ScheduleAbsolute<TAbsolute, TRelative>(this VirtualTimeSchedulerBase<TAbsolute, TRelative> scheduler, TAbsolute dueTime, Action action)
where TAbsolute : IComparable<TAbsolute>
Parameters
Type | Name | Description |
---|---|---|
VirtualTimeSchedulerBase<TAbsolute, TRelative> | scheduler | Scheduler to execute the action on. |
TAbsolute | dueTime | Absolute time at which to execute the action. |
Action | action | Action to be executed. |
Returns
Type | Description |
---|---|
IDisposable | The disposable object used to cancel the scheduled action (best effort). |
Type Parameters
Name | Description |
---|---|
TAbsolute | Absolute time representation type. |
TRelative | Relative time representation type. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
ScheduleRelative<TAbsolute, TRelative>(VirtualTimeSchedulerBase<TAbsolute, TRelative>, TRelative, Action)
Schedules an action to be executed at dueTime.
Declaration
public static IDisposable ScheduleRelative<TAbsolute, TRelative>(this VirtualTimeSchedulerBase<TAbsolute, TRelative> scheduler, TRelative dueTime, Action action)
where TAbsolute : IComparable<TAbsolute>
Parameters
Type | Name | Description |
---|---|---|
VirtualTimeSchedulerBase<TAbsolute, TRelative> | scheduler | Scheduler to execute the action on. |
TRelative | dueTime | Relative time after which to execute the action. |
Action | action | Action to be executed. |
Returns
Type | Description |
---|---|
IDisposable | The disposable object used to cancel the scheduled action (best effort). |
Type Parameters
Name | Description |
---|---|
TAbsolute | Absolute time representation type. |
TRelative | Relative time representation type. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|