DispatchWorkItemFlags are an option set that configure the behavior of a
DispatchWorkItem value, including its quality of service class and whether to create a barrier or spawn a new detached thread.
- iOS 7.0+
- macOS 10.9+
- tvOS 9.0+
- watchOS 2.0+
- Xcode 8.0+
Creates an empty option set.
Creates a new set from a finite sequence of items.
Managing Units of Work
DispatchWorkItem encapsulates work that can be performed. A work item can be dispatched onto a
DispatchQueue and within a
DispatchWorkItem can also be set as a
DispatchSource event, registration, or cancel handler.