Protocol

DispatchSourceProcess

A dispatch source that monitors an external process for events.

Declaration

protocol DispatchSourceProcess

Overview

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

Topics

Getting the Process ID

var handle: pid_t

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

Getting the Event Data

var data: DispatchSource.ProcessEvent

Data associated with the last process-related event.

var mask: DispatchSource.ProcessEvent

The process events being monitored by the dispatch source.

Relationships

Conforming Types

See Also

Creating a Process Source

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software