Contents

setEventHandler(handler:)

Sets the event handler work item for the dispatch source.

Declaration

func setEventHandler(handler: DispatchWorkItem)

Parameters

  • handler:

    The event handler block to submit to the source’s target queue.

Discussion

The event handler (if specified) is submitted to the source’s target queue in response to the arrival of an event.

See Also

Installing Event Handlers