---
title: DispatchSourceMachReceive
framework: dispatch
role: symbol
role_heading: Protocol
path: dispatch/dispatchsourcemachreceive
---

# DispatchSourceMachReceive

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

## Declaration

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

## Overview

Overview You do not adopt this protocol in your objects. Instead, use the makeMachReceiveSource(port:queue:) method to create an object that adopts this protocol.

## Topics

### Getting the Mach Port Handle

- [handle](dispatch/dispatchsourcemachreceive/handle.md)

## Relationships

### Inherits From

- [DispatchSourceProtocol](dispatch/dispatchsourceprotocol.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

### Conforming Types

- [DispatchSource](dispatch/dispatchsource.md)

## See Also

### Creating a Mach Port Source

- [makeMachReceiveSource(port:queue:)](dispatch/dispatchsource/makemachreceivesource(port:queue:).md)
- [makeMachSendSource(port:eventMask:queue:)](dispatch/dispatchsource/makemachsendsource(port:eventmask:queue:).md)
- [DispatchSourceMachSend](dispatch/dispatchsourcemachsend.md)
- [DispatchSource.MachSendEvent](dispatch/dispatchsource/machsendevent.md)
