One Logo Pool Ball
Dispatch · IOS API REFERENCE

DispatchSourceProtocol

protocol · SDK 27.1

protocol DispatchSourceProtocol : NSObjectProtocol

Members (14)

get

isCancelled

Swift declaration
var isCancelled: Bool { get }
method

setEventHandler

Swift declaration
func setEventHandler(qos: DispatchQoS = .unspecified, flags: DispatchWorkItemFlags = [], handler: Self.DispatchSourceHandler?)
method · iOS 8.0+

setEventHandler

Swift declaration
func setEventHandler(handler: DispatchWorkItem)
method

setCancelHandler

Swift declaration
func setCancelHandler(qos: DispatchQoS = .unspecified, flags: DispatchWorkItemFlags = [], handler: Self.DispatchSourceHandler?)
method · iOS 8.0+

setCancelHandler

Swift declaration
func setCancelHandler(handler: DispatchWorkItem)
method

setRegistrationHandler

Swift declaration
func setRegistrationHandler(qos: DispatchQoS = .unspecified, flags: DispatchWorkItemFlags = [], handler: Self.DispatchSourceHandler?)
method · iOS 8.0+

setRegistrationHandler

Swift declaration
func setRegistrationHandler(handler: DispatchWorkItem)
get

data

Swift declaration
var data: UInt { get }
get

mask

Swift declaration
var mask: UInt { get }
method

cancel

Swift declaration
func cancel()
get

handle

Swift declaration
var handle: UInt { get }
method

resume

Swift declaration
func resume()
method

suspend

Swift declaration
func suspend()
method · iOS 10.0+

activate

Swift declaration
func activate()

Skipped declarations

No declarations were skipped in this snapshot.

All Dispatch types →