Dispatch Source Type Constants

Types of dispatch sources.

See Also

Managing Dispatch Sources

OS_dispatch_source

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

dispatch_source_type_t

An identifier for the type system object being monitored by a dispatch source.

dispatch_fd_t

A file descriptor used for I/O operations.

dispatch_source_create

Creates a new dispatch source to monitor low-level system objects and automatically submit a handler block to a dispatch queue in response to events.

dispatch_source_get_data

Returns pending data for the dispatch source.

dispatch_source_get_handle

Returns the underlying system handle associated with the specified dispatch source.

dispatch_source_get_mask

Returns the mask of events monitored by the dispatch source.

dispatch_source_merge_data

Merges data into a dispatch source of type DISPATCH_SOURCE_TYPE_DATA_ADD or DISPATCH_SOURCE_TYPE_DATA_OR and submits its event handler block to its target queue.

dispatch_source_set_timer

Sets a start time, interval, and leeway value for a timer source.

dispatch_source_set_registration_handler

Sets the registration handler block for the given dispatch source.

dispatch_source_set_registration_handler_f

Sets the registration handler function for the given dispatch source.

dispatch_source_set_event_handler

Sets the event handler block for the given dispatch source.

dispatch_source_set_event_handler_f

Sets the event handler function for the given dispatch source.

dispatch_source_set_cancel_handler

Sets the cancellation handler block for the given dispatch source.

dispatch_source_set_cancel_handler_f

Sets the cancellation handler function for the given dispatch source.

dispatch_source_cancel

Asynchronously cancels the dispatch source, preventing any further invocation of its event handler block.

dispatch_source_testcancel

Tests whether the given dispatch source has been canceled.