Creates, synchronously executes, and releases a dispatch block from the specified block and flags.
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
Configuration flags for the block object. For possible values, see
_block _flags _t
Passing a value that is not a bitwise OR of valid flags results in
The block to create the dispatch block from.
This function is equivalent to the following code:
This functionality may be implemented more efficiently internally by not requiring a copy to the heap of the specified block or the allocation of a new block object.