Contents

global(qos:)

Returns the global system queue with the specified quality-of-service class.

Declaration

class func global(qos: DispatchQoS.QoSClass = .default) -> DispatchQueue

Parameters

  • 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