File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change 42
42
}
43
43
```
44
44
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
+
45
58
* The Swift compiler no longer diagnoses references to declarations that are
46
59
potentially unavailable because the platform version might not be new enough
47
60
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
10824
10837
[SE- 0442 ]: https: // github.com/swiftlang/swift-evolution/blob/main/proposals/0442-allow-taskgroup-childtaskresult-type-to-be-inferred.md
10825
10838
[SE- 0444 ]: https: // github.com/swiftlang/swift-evolution/blob/main/proposals/0444-member-import-visibility.md
10826
10839
[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
10827
10841
[SE- 0469 ]: https: // github.com/swiftlang/swift-evolution/blob/main/proposals/0469-task-names.md
10828
10842
[SE- 0470 ]: https: // github.com/swiftlang/swift-evolution/blob/main/proposals/0470-isolated-conformances.md
10829
10843
[SE- 0472 ]: https: // github.com/swiftlang/swift-evolution/blob/main/proposals/0472-task-start-synchronously-on-caller-context.md
You can’t perform that action at this time.
0 commit comments