Concurrency Concepts
Task Priorities
Task priorities describe how important a unit of concurrent work is.
Choose a priority label
task_priorities.swift
let urgent =
let priority = urgent ? "high" : "background"
let message = "priority=\(priority)"
print(message)
let urgent =
let priority = urgent ? "high" : "background"
let message = "priority=\(priority)"
print(message)
task priority
A priority choice is often made from input before a task is created.