Enumeration

DispatchPredicate

DispatchPredicate represents logical conditions that can be evaluated within a given execution context using the dispatchPrecondition(condition:) method.

Topics

Enumeration Cases

case onQueue(DispatchQueue)

Predicates that the evaluated context is the associated dispatch queue.

case onQueueAsBarrier(DispatchQueue)

Predicates that the evaluated context is the associated dispatch queue as part of a barrier operation.

case notOnQueue(DispatchQueue)

Predicates that the evaluated context is not the associated dispatch queue.

See Also

Working with Dispatch Objects

class DispatchObject

DispatchObject is the base class for many dispatch types, including DispatchQueue, DispatchGroup, and DispatchSource.

func dispatchPrecondition(condition: () -> DispatchPredicate)

Checks a dispatch condition necessary for further execution.

func activate()

Activates the dispatch object.