A system-provided dispatch queue that schedules tasks for serial execution on the app's main thread.
SDKs
- iOS 8.0+
- macOS 10.10+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Xcode 10.0+
Framework
- Dispatch
Declaration
class OS_dispatch_queue_main : OS _dispatch _queue _serial
Overview
You do not create objects of this type directly. You receive a queue of the appropriate type when you create a new Dispatch
object.