Protocol

DispatchSourceUserDataAdd

A dispatch source that coalesces data obtained via calls to calls to the add(data:) method.

Topics

Instance Methods

Relationships

Adopted By

See Also

Managing Dispatch Sources

class DispatchSource

DispatchSource provides an interface for monitoring low-level system objects such as Mach ports, Unix descriptors, Unix signals, and VFS nodes for activity and submitting event handlers to dispatch queues for asynchronous processing when such activity occurs.

protocol DispatchSourceProtocol

Defines a common set of properties and methods that are shared with all dispatch source types.

protocol DispatchSourceFileSystemObject

A dispatch source that monitors a file descriptor for events defined by DispatchSource.FileSystemEvent. The handle is a file descriptor (Int32).

protocol DispatchSourceMachSend

A dispatch source that monitors a Mach port for dead name notifications, indicating that a send right no longer has any corresponding receive right. The handle is a Mach port with a send or send-once right (mach_port_t).

protocol DispatchSourceMachReceive

A dispatch source that monitors a Mach port for pending messages. The handle is a Mach port with a receive right (mach_port_t).

protocol DispatchSourceMemoryPressure

A dispatch source that monitors the system for changes in memory pressure condition.

protocol DispatchSourceProcess

A dispatch source that monitors an external process for events defined by DispatchSource.ProcessEvent. The handle is a process identifier (pid_t).

protocol DispatchSourceTimer

A dispatch source that submits the event handler block based on a timer.

protocol DispatchSourceUserDataOr

A dispatch source that coalesces data obtained via calls to the or(data:) method.

protocol DispatchSourceSignal

A dispatch source that monitors the current process for Unix signals.