SchedulerPostTaskOptions Class

The options of Scheduler.PostTask (https://wicg.github.io/scheduling-apis/#dictdef-schedulerposttaskoptions).

public sealed class SchedulerPostTaskOptions

Constructors

NameDescription
SchedulerPostTaskOptions()

SchedulerPostTaskOptions()

public SchedulerPostTaskOptions()

No documentation is available.

Properties

NameDescription
DelayGets the minimum time, in milliseconds, before the task is queued.
PriorityGets the priority of the task, which then does not change; null for the priority of SchedulerPostTaskOptions.Signal, or TaskPriority.UserVisible.
SignalGets the signal that aborts the task; when it is a TaskSignal and SchedulerPostTaskOptions.Priority is null, the task also follows the priority of the signal.

Gets the minimum time, in milliseconds, before the task is queued.

public ulong Delay { get; init; }

Priority

Scheduler.cs

Gets the priority of the task, which then does not change; null for the priority of SchedulerPostTaskOptions.Signal, or TaskPriority.UserVisible.

public TaskPriority? Priority { get; init; }

Gets the signal that aborts the task; when it is a TaskSignal and SchedulerPostTaskOptions.Priority is null, the task also follows the priority of the signal.

public AbortSignal? Signal { get; init; }