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
AbortSignalTaskSignal
Properties
| Name | Description |
|---|---|
| OnPriorityChange | Gets or sets the event handler of the prioritychange event. |
| Priority | Gets the priority of the signal (https://wicg.github.io/scheduling-apis/#dom-tasksignal-priority). |
OnPriorityChange
TaskSignal.csGets or sets the event handler of the prioritychange event.
Property value
See also
Priority
TaskSignal.csGets the priority of the signal (https://wicg.github.io/scheduling-apis/#dom-tasksignal-priority).
public TaskPriority Priority { get; }Methods
| Name | Description |
|---|---|
| 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.csReturns 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)