A dispatch source that monitors an external process for events.
On This Page
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.
var handle: pid_t
The process identifier of the process being monitored by the dispatch source.
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.
class func makeProcessSource(identifier: pid_t, eventMask: DispatchSource.ProcessEvent, queue: DispatchQueue?) -> DispatchSourceProcess
Creates a new dispatch source object for monitoring the specified process.
Events related to a process.
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.