---
title: DispatchSpecificKey
framework: dispatch
role: symbol
role_heading: Class
path: dispatch/dispatchspecifickey
---

# DispatchSpecificKey

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

## Declaration

```swift
final class DispatchSpecificKey<T>
```

## Overview

Overview Access the value of a key using the setSpecific(key:value:) and getSpecific(key:) methods.

## Topics

### Creating a Key

- [init()](dispatch/dispatchspecifickey/init().md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Getting and Setting Contextual Data

- [setSpecific(key:value:)](dispatch/dispatchqueue/setspecific(key:value:).md)
- [getSpecific(key:)](dispatch/dispatchqueue/getspecific(key:)-swift.method.md)
- [getSpecific(key:)](dispatch/dispatchqueue/getspecific(key:)-swift.type.method.md)
