global(qos:)
Returns the global system queue with the specified quality-of-service class.
Declaration
class func global(qos: DispatchQoS.QoSClass = .default) -> DispatchQueueParameters
- qos:
The quality-of-service level to associate with the queue. This value determines the priority at which the system schedules tasks for execution. For a list of possible values, see Qosclass Swift.enum.
Discussion
This method returns a queue suitable for executing tasks with the specified quality-of-service level. Calls to the suspend(), resume(), and dispatch_set_context functions have no effect on the returned queues.
Tasks submitted to the returned queue are scheduled concurrently with respect to one another.
See Also
Creating a Dispatch Queue
maininit(label:qos:attributes:autoreleaseFrequency:target:)DispatchQoS.QoSClassDispatchQueue.AttributesDispatchQueue.AutoreleaseFrequencyOS_dispatch_queue_mainOS_dispatch_queue_globalDispatchSerialQueueDispatchConcurrentQueuedispatch_queue_main_tdispatch_queue_global_tdispatch_queue_serial_tdispatch_queue_concurrent_t