Instance Method setCancelHandler(handler:) func setCancelHandler(handler: DispatchWorkItem) Default Implementations DispatchSourceProtocol Implementations func setCancelHandler(handler: DispatchWorkItem)