<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "macOS: -",
    "tvOS: -",
    "visionOS: -",
    "watchOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "Dispatch",
  "identifier" : "/documentation/Dispatch/DispatchSourceMachReceive",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "Dispatch"
    ],
    "preciseIdentifier" : "c:objc(pl)OS_dispatch_source_mach_recv"
  },
  "title" : "DispatchSourceMachReceive"
}
-->

# DispatchSourceMachReceive

A dispatch source that monitors a Mach port for pending messages.

```
protocol DispatchSourceMachReceive : DispatchSourceProtocol, Sendable
```

## Overview

You do not adopt this protocol in your objects. Instead, use the [`makeMachReceiveSource(port:queue:)`](/documentation/Dispatch/DispatchSource/makeMachReceiveSource(port:queue:)) method to create an object that adopts this protocol.

## Topics

### Getting the Mach Port Handle

[`handle`](/documentation/Dispatch/DispatchSourceMachReceive/handle)



---

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)