TaskSignal Class

An AbortSignal that also has a priority (https://wicg.github.io/scheduling-apis/#sec-task-signal): the tasks posted to a Scheduler with the signal of a TaskController follow its priority.

public sealed class TaskSignal : AbortSignal
Inheritance
AbortSignal TaskSignal

Properties

NameDescription
OnPriorityChangeGets or sets the event handler of the prioritychange event.
PriorityGets the priority of the signal (https://wicg.github.io/scheduling-apis/#dom-tasksignal-priority).

OnPriorityChange

TaskSignal.cs

Gets or sets the event handler of the prioritychange event.

public Action<Event>? OnPriorityChange { get; set; }

Gets the priority of the signal (https://wicg.github.io/scheduling-apis/#dom-tasksignal-priority).

public TaskPriority Priority { get; }

Methods

NameDescription
Any(IEnumerable<AbortSignal>, TaskSignalAnyInit?)Returns a signal that is aborted when one of signals is, and whose priority is the one of init: a fixed priority, or the priority of a signal, which the new signal follows (https://wicg.github.io/scheduling-apis/#dom-tasksignal-any).

Any(IEnumerable<AbortSignal>, TaskSignalAnyInit?)

TaskSignal.cs

Returns a signal that is aborted when one of signals is, and whose priority is the one of init: a fixed priority, or the priority of a signal, which the new signal follows (https://wicg.github.io/scheduling-apis/#dom-tasksignal-any).

public static TaskSignal Any(IEnumerable<AbortSignal> signals, TaskSignalAnyInit? init = null)