Skip to content

,--0,System.Action)}

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

NameDescription
TAbsoluteAbsolute time representation type.
TRelativeRelative time representation type.

Parameters

NameTypeDescription
scheduler[VirtualTimeSchedulerBase](#Scheduler to execute the action on.
dueTimeTAbsoluteAbsolute time at which to execute the action.
actionActionAction to be executed.

Returns: IDisposable -- The disposable object used to cancel the scheduled action (best effort).

Exceptions

TypeCondition
System.ArgumentNullExceptionscheduler or action is null.