MDN self-hosted library · e01.org

TaskPriorityChangeEvent: TaskPriorityChangeEvent() constructor

Prioritized Task Scheduling API

no runnable cells web-api-constructor upstream source

Prioritized Task Scheduling API

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.

Syntax

new TaskPriorityChangeEvent(type, options)

Parameters

  • type
  • : A string with the case-sensitive name of the associated event. User agents set it to "prioritychange".

  • options

  • : An object that, in addition of the properties defined in Event(), can have the following properties:

Specifications

Browser compatibility