A dispatch queue that executes blocks concurrently.
- iOS 4.3+
- macOS 10.7+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Although they execute blocks concurrently, you can use barrier blocks to create synchronization points within the queue.
Creating a Dispatch Queue
A lightweight object to which your application submits blocks for subsequent execution.
A dispatch queue that is bound to the app's main thread and executes tasks serially on that thread.
A dispatch queue that executes tasks concurrently using threads from the global thread pool.
A dispatch queue that executes tasks concurrently and in any order, respecting any barriers that may be in place.