Skip to content

Commit 98c33a7

Browse files
committed
new init in extension must be @available explicitly
1 parent a2783b2 commit 98c33a7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/public/Concurrency/PartialAsyncTask.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ extension TaskPriority {
7575
/// Convert a job priority to a task priority.
7676
///
7777
/// Most values are directly interchangeable, but this initializer reserves the right to fail for certain values.
78+
@available(SwiftStdlib 5.9, *)
7879
public init?(_ p: JobPriority) {
7980
// currently we always convert, but we could consider mapping over only recognized values etc.
8081
self = .init(rawValue: p.rawValue)

0 commit comments

Comments
 (0)