Skip to content

Commit 173c5ff

Browse files
committed
[Concurrency] Change availability for a TaskPriority extension
We need the `init?(JobPriority)` constructor to be `StdlibDeploymentTarget 5.9` so the compiler will not complain when we reference it from `ExecutorJob.createTrampoline` when building the standard library without strict availability. Addresses rdar://159397287
1 parent 687e09d commit 173c5ff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/public/Concurrency/PartialAsyncTask.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,12 +601,12 @@ public struct JobPriority: Sendable {
601601
}
602602
}
603603

604-
@available(SwiftStdlib 5.9, *)
604+
@available(StdlibDeploymentTarget 5.9, *)
605605
extension TaskPriority {
606606
/// Convert this ``UnownedJob/Priority`` to a ``TaskPriority``.
607607
///
608608
/// Most values are directly interchangeable, but this initializer reserves the right to fail for certain values.
609-
@available(SwiftStdlib 5.9, *)
609+
@available(StdlibDeploymentTarget 5.9, *)
610610
public init?(_ p: JobPriority) {
611611
guard p.rawValue != 0 else {
612612
// 0 is "undefined"

0 commit comments

Comments
 (0)