Generic Class


DispatchSpecificKey is a class that encapsulates keys that can be associated with a contextual value on a DispatchQueue using the setSpecific<T>(key:value:) method, and accessed using the getSpecific<T>(key:) method.


final class DispatchSpecificKey<T>



See Also

Managing Dispatch Queues

class DispatchQueue

DispatchQueue manages the execution of work items. Each work item submitted to a queue is processed on a pool of threads managed by the system.

func dispatch_get_current_queue() -> DispatchQueue

Returns the queue on which the currently executing block is running.

func setTarget(queue: DispatchQueue?)

Sets the target queue for the given object.

func dispatchMain() -> Never

Executes blocks submitted to the main queue.