File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
stdlib/public/Concurrency Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -202,11 +202,20 @@ public struct TaskPriority: RawRepresentable, Sendable {
202
202
}
203
203
204
204
public static let high : TaskPriority = . init( rawValue: 0x19 )
205
- public static let userInitiated : TaskPriority = high
206
- public static let `default` : TaskPriority = . init( rawValue: 0x15 )
205
+
206
+ @_alwaysEmitIntoClient
207
+ public static var medium : TaskPriority {
208
+ . init( rawValue: 0x15 )
209
+ }
210
+
207
211
public static let low : TaskPriority = . init( rawValue: 0x11 )
212
+
213
+ public static let userInitiated : TaskPriority = high
208
214
public static let utility : TaskPriority = low
209
215
public static let background : TaskPriority = . init( rawValue: 0x09 )
216
+
217
+ @available ( * , deprecated, renamed: " medium " )
218
+ public static let `default` : TaskPriority = . init( rawValue: 0x15 )
210
219
}
211
220
212
221
@available ( SwiftStdlib 5 . 5 , * )
You can’t perform that action at this time.
0 commit comments