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

# DispatchSourceMachSend

A dispatch source that monitors a Mach port for dead name notifications, indicating that a send right no longer has a corresponding receive right.

```
protocol DispatchSourceMachSend : DispatchSourceProtocol, Sendable
```

## Overview

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

## Topics

### Getting the Mach Port Handle

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

### Getting the Event Data

[`data`](/documentation/Dispatch/DispatchSourceMachSend/data)

[`mask`](/documentation/Dispatch/DispatchSourceMachSend/mask)



---

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)