Submits a work item for execution using the specified attributes and returns the results from that item after it finishes executing.
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Xcode 8.0+
Additional attributes to apply when executing the block. For a list of possible values, see DispatchWorkItemFlags.
The work item containing the work to perform. The block encapsulated by the work item should return a result, which is then returned by this method. For information on how to create this work item, see
The return value of the item in the