---
title: inheritQoS
framework: dispatch
role: symbol
role_heading: Type Property
path: dispatch/dispatchworkitemflags/inheritqos
---

# inheritQoS

Prefer the quality-of-service class associated with the current execution context.

## Declaration

```swift
static let inheritQoS: DispatchWorkItemFlags
```

## Discussion

Discussion This flag prioritizes the quality-of-service class of the current execution context over the one associated with the block, as long as doing so does not lower the quality of service.

## See Also

### Work Item Flags

- [assignCurrentContext](dispatch/dispatchworkitemflags/assigncurrentcontext.md)
- [barrier](dispatch/dispatchworkitemflags/barrier.md)
- [detached](dispatch/dispatchworkitemflags/detached.md)
- [enforceQoS](dispatch/dispatchworkitemflags/enforceqos.md)
- [noQoS](dispatch/dispatchworkitemflags/noqos.md)
