Generic Instance Method

getSpecific(key:)

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

Declaration

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

Parameters

key

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.