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

# DispatchSourceProcess

A dispatch source that monitors an external process for events.

```
protocol DispatchSourceProcess : DispatchSourceProtocol, Sendable
```

## Overview

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

## Topics

### Getting the Process ID

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

The process identifier of the process being monitored by the dispatch source.

### Getting the Event Data

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

Data associated with the last process-related event.

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

The process events being monitored by the dispatch source.



---

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)