Skip to content

Commit a27cf87

Browse files
committed
changelog: task priority escalation handlers
1 parent 9f5d8a6 commit a27cf87

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,19 @@
4242
}
4343
```
4444

45+
* [SE-0462][]:
46+
Task priority escalation may now be explicitly caused to a `Task`, as well as reacted to using the new task priority escalation handlers:
47+
48+
```swift
49+
// priority: low
50+
// priority: high!
51+
await withTaskPriorityEscalationHandler {
52+
await work()
53+
} onPriorityEscalated: { newPriority in // may not be triggered if ->high escalation happened before handler was installed
54+
// do something
55+
}
56+
```
57+
4558
* The Swift compiler no longer diagnoses references to declarations that are
4659
potentially unavailable because the platform version might not be new enough
4760
when those references occur inside of contexts that are also unavailable to
@@ -10824,6 +10837,7 @@ using the `.dynamicType` member to retrieve the type of an expression should mig
1082410837
[SE-0442]: https://github.com/swiftlang/swift-evolution/blob/main/proposals/0442-allow-taskgroup-childtaskresult-type-to-be-inferred.md
1082510838
[SE-0444]: https://github.com/swiftlang/swift-evolution/blob/main/proposals/0444-member-import-visibility.md
1082610839
[SE-0458]: https://github.com/swiftlang/swift-evolution/blob/main/proposals/0458-strict-memory-safety.md
10840+
[SE-0462]: https://github.com/swiftlang/swift-evolution/blob/main/proposals/0462-task-priority-escalation-apis.md
1082710841
[SE-0469]: https://github.com/swiftlang/swift-evolution/blob/main/proposals/0469-task-names.md
1082810842
[SE-0470]: https://github.com/swiftlang/swift-evolution/blob/main/proposals/0470-isolated-conformances.md
1082910843
[SE-0472]: https://github.com/swiftlang/swift-evolution/blob/main/proposals/0472-task-start-synchronously-on-caller-context.md

0 commit comments

Comments
 (0)