Enumeration

DispatchPredicate

Logical conditions to evaluate within a given execution context.

Declaration

enum DispatchPredicate

Overview

You use dispatch predicates with the dispatchPrecondition(condition:) method.

Topics

Predicates

case onQueue(DispatchQueue)

A predicate that indicates the evaluated context is the associated dispatch queue.

case onQueueAsBarrier(DispatchQueue)

A predicate that indicates the evaluated context is the associated dispatch queue as part of a barrier operation.

case notOnQueue(DispatchQueue)

A predicate that indicates the evaluated context is not the associated dispatch queue.

See Also

Dispatch Objects

class DispatchObject

The base class for most dispatch types.

func dispatchPrecondition(condition: () -> DispatchPredicate)

Checks a dispatch condition necessary for further execution.