Generic Instance Method


Returns the value for the key associated with this dispatch queue.


func getSpecific<T>(key: DispatchSpecificKey<T>) -> T?



The key associated with the dispatch queue.

See Also

Getting and Setting Contextual Data

func setSpecific<T>(key: DispatchSpecificKey<T>, value: T?)

Sets the key/value data for the specified dispatch queue.

class func getSpecific<T>(key: DispatchSpecificKey<T>) -> T?

Returns the value for the key associated with the current execution context.

class DispatchSpecificKey

A key associated with a specific contextual value on a dispatch queue.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software