TaskPriority Enum

The priority of the tasks and of the continuations of a Scheduler (https://wicg.github.io/scheduling-apis/#enumdef-taskpriority).

public enum TaskPriority

Fields

NameValueDescription
UserBlocking0The highest priority: the tasks that should run as soon as possible, e.g. the work that responds to the input of the user.
UserVisible1The default priority: the tasks whose effects are visible to the user, but not immediately.
Background2The lowest priority: the tasks that are not time-critical.