Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

Struct TaskPriority

sealed struct TaskPriority
TaskPriority is used to set the priority of task execution in IRunLoop. Supported priorities are HIGH, DEFAULT, and LOW. Tasks that have HIGH priority are executed before DEFAULT priority tasks and DEFAULT priority tasks are executed before LOW priority tasks.

Fields

Constants

HIGH

TaskPriority = {0}
TaskPriority value representing high priority.

DEFAULT

TaskPriority = {1}
TaskPriority value representing default priority.

LOW

TaskPriority = {2}
TaskPriority value representing low priority.
Last modified on October 29, 2026