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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software