---
title: DispatchWorkItemFlags
framework: dispatch
role: symbol
role_heading: Structure
path: dispatch/dispatchworkitemflags
---

# DispatchWorkItemFlags

A set of behaviors for a work item, such as its quality-of-service class and whether to create a barrier or spawn a new detached thread.

## Declaration

```swift
struct DispatchWorkItemFlags
```

## Topics

### Work Item Flags

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

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Creating a Work Item

- [init(qos:flags:block:)](dispatch/dispatchworkitem/init(qos:flags:block:).md)
