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