The following no longer works:
DispatchQueue(label: "Some Label", attributes: .serial)
The new DispatchQueue.Attributes does not contain a serial constant.
extension DispatchQueue {
public struct Attributes : OptionSet {
public let rawValue: UInt64
public init(rawValue: UInt64)
public static let concurrent: DispatchQueue.Attributes
public static let initiallyInactive: DispatchQueue.Attributes
}
So how does one create a serial queue now?
Thanks!