//
//  OperationQueue+Ext.swift
//  PQSpeed
//
//  Created by SanW on 2020/12/8.
//  Copyright © 2020 BytesFlow. All rights reserved.
//

import Foundation

// MARK: - 操作队列扩展

/// 操作队列扩展
extension OperationQueue {
    convenience init(qualityOfService: QualityOfService = .default,
                     maxConcurrentOperationCount: Int = OperationQueue.defaultMaxConcurrentOperationCount,
                     underlyingQueue: DispatchQueue? = nil,
                     name: String? = nil)
    {
        self.init()
        self.qualityOfService = qualityOfService
        self.maxConcurrentOperationCount = maxConcurrentOperationCount
        self.underlyingQueue = underlyingQueue
        self.name = name
    }
}
