Note: This feature is available in Web Workers.
The TaskPriorityChangeEvent() constructor creates a new TaskPriorityChangeEvent object.
This object is created with a value indicating the previous priority of the task: the priority before it changed and this event was fired.
new TaskPriorityChangeEvent(type, options)typeA string with the case-sensitive name of the associated event. User agents set it to "prioritychange".
optionsAn object that, in addition of the properties defined in Event(), can have the following properties:
previousPriorityA string indicating the previous priority of the task. One of: "user-blocking", "user-visible", "background".