<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.10.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Dispatch",
  "identifier" : "/documentation/Dispatch/dispatch_block_flags_t/DISPATCH_BLOCK_ENFORCE_QOS_CLASS",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration Case",
  "symbol" : {
    "kind" : "Enumeration Case",
    "modules" : [
      "Dispatch"
    ],
    "preciseIdentifier" : "c:@EA@dispatch_block_flags_t@DISPATCH_BLOCK_ENFORCE_QOS_CLASS"
  },
  "title" : "DISPATCH_BLOCK_ENFORCE_QOS_CLASS"
}
-->

# DISPATCH_BLOCK_ENFORCE_QOS_CLASS

Prefer the quality-of-service class associated with the block.

```
DISPATCH_BLOCK_ENFORCE_QOS_CLASS
```

## Discussion

Indicates that execution of a dispatch block submitted to a queue should prefer the QoS class assigned to the block at the time of submission over the QoS class assigned to the queue, as long as doing so will not result in a lower QoS class. This flag is the default when a dispatch block is submitted to a queue for synchronous execution or when the dispatch block is invoked directly.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)