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.
1 parent a0c0371 commit 20a0b65Copy full SHA for 20a0b65
src/swift/Queue.swift
@@ -33,10 +33,8 @@ public struct DispatchQueueAttributes : OptionSet {
33
public static let concurrent = DispatchQueueAttributes(rawValue: 1<<1)
34
35
private var _translatedValue: DispatchQueue.Attributes {
36
- switch self {
37
- case .concurrent: return .concurrent
38
- default: return []
39
- }
+ if self.contains(.concurrent) { return .concurrent }
+ return []
40
}
41
42
@@ -97,7 +95,7 @@ public extension DispatchQueue {
97
95
public enum GlobalQueueDeprecatedPriority {
98
96
case qosBackground
99
100
- private var _translatedValue: DispatchQoS {
+ private var _translatedValue: DispatchQoS.QoSClass {
101
switch self {
102
case .qosBackground: return .background
103
0 commit comments