GlobalQueuePriority
enum GlobalQueuePriority
enum GlobalQueuePriority
import Dispatch
class DispatchQueue
case background
case `default`
case high
case low
convenience init(label: String, qos: DispatchQoS = .unspecified, attributes: DispatchQueue.Attributes = [], autoreleaseFrequency: DispatchQueue.AutoreleaseFrequency = .inherit, target: DispatchQueue? = nil)
class var main: DispatchQueue { get }
class func concurrentPerform(iterations: Int, execute work: (Int) -> Void)
class func getSpecific<T>(key: DispatchSpecificKey<T>) -> T?
class func global(priority: DispatchQueue.GlobalQueuePriority) -> DispatchQueue
class func global(qos: DispatchQoS.QoSClass = .default) -> DispatchQueue
var label: String { get }
var qos: DispatchQoS { get }
func async(execute workItem: DispatchWorkItem)
Submits a work item for asynchronous execution on a dispatch queue.
func async(group: DispatchGroup, execute workItem: DispatchWorkItem)
Submits a work item to a dispatch queue and associates it with the given dispatch group. The dispatch group may be used to wait for the completion of the work items it references.
func async(group: DispatchGroup? = nil, qos: DispatchQoS = .unspecified, flags: DispatchWorkItemFlags = [], execute work: @escaping () -> Void)
Submits a work item to a dispatch queue and optionally associates it with a dispatch group. The dispatch group may be used to wait for the completion of the work items it references.
func asyncAfter(deadline: DispatchTime, execute: DispatchWorkItem)
Submits a work item to a dispatch queue for asynchronous execution after a specified time.
func asyncAfter(deadline: DispatchTime, qos: DispatchQoS = .unspecified, flags: DispatchWorkItemFlags = [], execute work: @escaping () -> Void)
Submits a work item to a dispatch queue for asynchronous execution after a specified time.
func asyncAfter(wallDeadline: DispatchWallTime, execute: DispatchWorkItem)
Submits a work item to a dispatch queue for asynchronous execution after a specified time.
func asyncAfter(wallDeadline: DispatchWallTime, qos: DispatchQoS = .unspecified, flags: DispatchWorkItemFlags = [], execute work: @escaping () -> Void)
Submits a work item to a dispatch queue for asynchronous execution after a specified time.
func getSpecific<T>(key: DispatchSpecificKey<T>) -> T?
func setSpecific<T>(key: DispatchSpecificKey<T>, value: T?)
func sync<T>(execute work: () throws -> T) rethrows -> T
Submits a block for synchronous execution on this queue.
func sync(execute workItem: DispatchWorkItem)
Submits a block for synchronous execution on this queue.
func sync(execute workItem: () -> ())
func sync<T>(flags: DispatchWorkItemFlags, execute work: () throws -> T) rethrows -> T
Submits a block for synchronous execution on this queue.
struct Attributes
enum AutoreleaseFrequency
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.