VirtualTimeSchedulerExtensions.ScheduleAbsolute(VirtualTimeSchedulerBase, TAbsolute, Action) method¶
Defined in
Type: VirtualTimeSchedulerExtensions
Namespace: System.Reactive.Concurrency
Assembly: System.Reactive.dll
Applies to
netstandard2.0
public static IDisposable ScheduleAbsolute<TAbsolute, TRelative>(this VirtualTimeSchedulerBase<TAbsolute, TRelative> scheduler, TAbsolute dueTime, Action action) where TAbsolute : IComparable<TAbsolute>
Summary:
Schedules an action to be executed at dueTime.
Type parameters
| Name | Description |
|---|---|
TAbsolute | Absolute time representation type. |
TRelative | Relative time representation type. |
Parameters
| Name | Type | Description |
|---|---|---|
scheduler | [VirtualTimeSchedulerBase | Scheduler to execute the action on. |
dueTime | TAbsolute | Absolute time at which to execute the action. |
action | Action | Action to be executed. |
Returns: IDisposable -- The disposable object used to cancel the scheduled action (best effort).
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | scheduler or action is null. |