Protocolswift 6.0.3Dispatch
DispatchSourceProtocol
protocol DispatchSourceProtocol
Browse conforming typesprotocol DispatchSourceProtocol
import Dispatch
var data: UInt { get }
var handle: UInt { get }
var isCancelled: Bool { get }
var mask: UInt { get }
func cancel()
func resume()
func setCancelHandler(handler: DispatchWorkItem)
func setCancelHandler(qos: DispatchQoS, flags: DispatchWorkItemFlags, handler: DispatchSourceHandler?)
func setEventHandler(handler: DispatchWorkItem)
func setEventHandler(qos: DispatchQoS, flags: DispatchWorkItemFlags, handler: DispatchSourceHandler?)
func setRegistrationHandler(handler: DispatchWorkItem)
func setRegistrationHandler(qos: DispatchQoS, flags: DispatchWorkItemFlags, handler: DispatchSourceHandler?)
func suspend()
var data: UInt { get }
var handle: UInt { get }
var isCancelled: Bool { get }
var mask: UInt { get }
func activate()
func cancel()
func resume()
func setCancelHandler(handler: DispatchWorkItem)
func setCancelHandler(qos: DispatchQoS = .unspecified, flags: DispatchWorkItemFlags = [], handler: DispatchSourceHandler?)
func setEventHandler(handler: DispatchWorkItem)
func setEventHandler(qos: DispatchQoS = .unspecified, flags: DispatchWorkItemFlags = [], handler: DispatchSourceHandler?)
func setRegistrationHandler(handler: DispatchWorkItem)
func setRegistrationHandler(qos: DispatchQoS = .unspecified, flags: DispatchWorkItemFlags = [], handler: DispatchSourceHandler?)
func suspend()
protocol DispatchSourceRead : DispatchSourceProtocol
protocol DispatchSourceSignal : DispatchSourceProtocol
protocol DispatchSourceTimer : DispatchSourceProtocol
protocol DispatchSourceUserDataAdd : DispatchSourceProtocol
protocol DispatchSourceUserDataOr : DispatchSourceProtocol
protocol DispatchSourceUserDataReplace : DispatchSourceProtocol
protocol DispatchSourceWrite : DispatchSourceProtocol