[Accepted with modifications] SE-0462: Task Priority Escalation APIs

Hello Swift community,

The review of SE-0462: Task Priority Escalation APIs ran from February 20th to March 2nd, 2025. The review was largely uncontroversial, and the Language Steering Group has decided to accept this proposal with modifications. Specifically, the Language Steering Group requests the following two changes:

  1. The escalatePrioritiy APIs should be turned into instance methods on Task and UnsafeCurrentTask (instead of static methods). The Group did not feel like the minor decrease in discoverability justified giving this API what we otherwise felt to be a highly sub-optimal syntax.
  2. The escalation handler passed to withTaskPriorityEscalationHandler receive the task's old priority in addition to the escalated priority. It might be difficult or inefficient for the client to recover this information on their own, and the API should be able to provide it relatively cheaply.

Thank you to everyone who participated in this review for helping to make Swift a better language!

Freddy Kellison-Linn
Review Manager

13 Likes

Thank you everyone who participated in the review!

Ill apply the updates shortly

3 Likes