TaskPriorityChangeEvent Class

The prioritychange event fired at a TaskSignal when its priority changes (https://wicg.github.io/scheduling-apis/#sec-task-priority-change-event): the new priority is the one of its target.

public sealed class TaskPriorityChangeEvent : Event
Inheritance
Event TaskPriorityChangeEvent

Constructors

NameDescription
TaskPriorityChangeEvent(string, TaskPriorityChangeEventInit)Creates an event with the given type and initialization dictionary.

TaskPriorityChangeEvent(string, TaskPriorityChangeEventInit)

TaskSignal.cs

Creates an event with the given type and initialization dictionary.

public TaskPriorityChangeEvent(string type, TaskPriorityChangeEventInit priorityChangeEventInitDict)

Properties

NameDescription
PreviousPriorityGets the priority of the signal before the change.

PreviousPriority

TaskSignal.cs

Gets the priority of the signal before the change.

public TaskPriority PreviousPriority { get; }