0001 // 0002 // DispatchQueueSchedulerQOS.swift 0003 // RxSwift 0004 // 0005 // Created by John C. "Hsoi" Daub on 12/30/15. 0006 // Copyright © 2015 Krunoslav Zaher. All rights reserved. 0007 // 0008 0009 import Foundation 0010 0011 /** 0012 Identifies one of the global concurrent dispatch queues with specified quality of service class. 0013 */ 0014 public enum DispatchQueueSchedulerQOS{ 0015 0016 /** 0017 Identifies global dispatch queue with `QOS_CLASS_USER_INTERACTIVE` 0018 */ 0019 case UserInteractive
ConcurrentDispatchQueueScheduler.swift:46 public convenience init(globalConcurrentQueueQOS: DispatchQueueSchedulerQOS) {DispatchQueueSchedulerQOS.swift:44 extension DispatchQueueSchedulerQOS {SerialDispatchQueueScheduler.swift:83 public convenience init(globalConcurrentQueueQOS: DispatchQueueSchedulerQOS, internalSerialQueueName: String = "rx.global_dispatch_queue.serial") {0020 0021 /** 0022 Identifies global dispatch queue with `QOS_CLASS_USER_INITIATED` 0023 */ 0024 case UserInitiated
DispatchQueueSchedulerQOS.swift:47 case .UserInteractive: return QOS_CLASS_USER_INTERACTIVE0025 0026 /** 0027 Identifies global dispatch queue with `QOS_CLASS_DEFAULT` 0028 */ 0029 case Default
DispatchQueueSchedulerQOS.swift:48 case .UserInitiated: return QOS_CLASS_USER_INITIATED0030 0031 /** 0032 Identifies global dispatch queue with `QOS_CLASS_UTILITY` 0033 */ 0034 case Utility
DispatchQueueSchedulerQOS.swift:49 case .Default: return QOS_CLASS_DEFAULT0035 0036 /** 0037 Identifies global dispatch queue with `QOS_CLASS_BACKGROUND` 0038 */ 0039 case Background
DispatchQueueSchedulerQOS.swift:50 case .Utility: return QOS_CLASS_UTILITY0040 } 0041 0042 0043 @available(iOS 8, OSX 10.10, *) 0044 extension DispatchQueueSchedulerQOS { 0045 var QOSClass
DispatchQueueSchedulerQOS.swift:51 case .Background: return QOS_CLASS_BACKGROUND: qos_class_t { 0046 switch self { 0047 case .UserInteractive: return QOS_CLASS_USER_INTERACTIVE 0048 case .UserInitiated: return QOS_CLASS_USER_INITIATED 0049 case .Default: return QOS_CLASS_DEFAULT 0050 case .Utility: return QOS_CLASS_UTILITY 0051 case .Background: return QOS_CLASS_BACKGROUND 0052 } 0053 } 0054 } 0055
ConcurrentDispatchQueueScheduler.swift:47 let priority = globalConcurrentQueueQOS.QOSClassSerialDispatchQueueScheduler.swift:84 let priority = globalConcurrentQueueQOS.QOSClass