Skip to content

Commit a2860ec

Browse files
authored
Merge pull request #39282 from DougGregor/concurrency-back-deploy-test-fix
2 parents fb1a4c8 + 07f38ec commit a2860ec

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/Concurrency/Runtime/async_task_priority_current.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@
1010

1111
import Dispatch
1212

13+
// Work around the inability of older Swift runtimes to print a task priority.
14+
extension TaskPriority: CustomStringConvertible {
15+
public var description: String {
16+
"TaskPriority(rawValue: \(rawValue))"
17+
}
18+
}
19+
1320
@available(SwiftStdlib 5.5, *)
1421
func test_detach() async {
1522
let a1 = Task.currentPriority

0 commit comments

Comments
 (0)