File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
stdlib/public/Concurrency Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,12 @@ extension Task {
44
44
// ==== Task Priority ----------------------------------------------------------
45
45
46
46
extension Task {
47
+
48
+ /// Returns the current task's priority.
49
+ public static func currentPriority( ) async -> Priority {
50
+ fatalError ( " \( #function) not implemented yet. " )
51
+ }
52
+
47
53
/// Task priority may inform decisions an `Executor` makes about how and when
48
54
/// to schedule tasks submitted to it.
49
55
///
@@ -61,7 +67,7 @@ extension Task {
61
67
/// as they are "detached" from their parent tasks after all.
62
68
///
63
69
/// ### Priority elevation
64
- /// In some situations the priority of a task must be elevated ("raised"):
70
+ /// In some situations the priority of a task must be elevated (or "escalated", "raised"):
65
71
///
66
72
/// - if a `Task` running on behalf of an actor, and a new higher-priority
67
73
/// task is enqueued to the actor, its current task must be temporarily
You can’t perform that action at this time.
0 commit comments