We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 759ebe6 + fef4261 commit 05dd0e0Copy full SHA for 05dd0e0
test/Concurrency/Runtime/async_task_priority_current.swift
@@ -39,15 +39,8 @@ func test_detach() async {
39
print("a2: \(a2)") // CHECK: a2: TaskPriority(rawValue: 25)
40
}.get()
41
42
- await detach(priority: .default) {
43
- let a3 = Task.currentPriority
44
- // The priority of 'a3' may either be 21 (default) or elevated to that of
45
- // the main function.
46
- print("a3: \(a3)") // CHECK: a3: TaskPriority(rawValue: {{21|[[#MAIN_PRIORITY]]}})
47
- }.get()
48
-
49
- let a4 = Task.currentPriority
50
- print("a4: \(a4)") // CHECK: a4: TaskPriority(rawValue: [[#MAIN_PRIORITY]])
+ let a3 = Task.currentPriority
+ print("a3: \(a3)") // CHECK: a3: TaskPriority(rawValue: [[#MAIN_PRIORITY]])
51
}
52
53
@available(SwiftStdlib 5.5, *)
0 commit comments