<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Dispatch",
  "identifier" : "/documentation/Dispatch/OS_dispatch_queue_main-swift.class",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "Dispatch"
    ],
    "preciseIdentifier" : "c:objc(cs)OS_dispatch_queue_main"
  },
  "title" : "OS_dispatch_queue_main"
}
-->

# OS_dispatch_queue_main

A system-provided dispatch queue that schedules tasks for serial execution on the app’s main thread.

```
class OS_dispatch_queue_main
```

## Overview

You do not create objects of this type directly. You receive a queue of the appropriate type when you create a new [`DispatchQueue`](/documentation/Dispatch/DispatchQueue) object.

## Relationships

### Conforms To

[`CVarArg`](/documentation/Swift/CVarArg)

[`SerialExecutor`](/documentation/Swift/SerialExecutor)

[`TaskExecutor`](/documentation/Swift/TaskExecutor)

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

[`Equatable`](/documentation/Swift/Equatable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Executor`](/documentation/Swift/Executor)

[`Scheduler`](/documentation/Combine/Scheduler)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

### Inherits From

[`DispatchSerialQueue`](/documentation/Dispatch/DispatchSerialQueue)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)