<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Dispatch",
  "identifier" : "/documentation/Dispatch/DISPATCH_SOURCE_TYPE_MACH_RECV",
  "metadataVersion" : "0.1.0",
  "role" : "Macro",
  "symbol" : {
    "kind" : "Macro",
    "modules" : [
      "Dispatch"
    ],
    "preciseIdentifier" : "c:@macro@DISPATCH_SOURCE_TYPE_MACH_RECV"
  },
  "title" : "DISPATCH_SOURCE_TYPE_MACH_RECV"
}
-->

# DISPATCH_SOURCE_TYPE_MACH_RECV

A type of dispatch source for monitoring a mach receive port.

```
#define DISPATCH_SOURCE_TYPE_MACH_RECV
```

## Discussion

A dispatch source that monitors a Mach port for pending messages. The handle is a Mach port with a receive right (`mach_port_t`). The mask is unused (pass zero for now).

---

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)