---
title: DispatchPredicate
framework: dispatch
role: symbol
role_heading: Enumeration
path: dispatch/dispatchpredicate
---

# DispatchPredicate

Logical conditions to evaluate within a given execution context.

## Declaration

```swift
enum DispatchPredicate
```

## Overview

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

## Topics

### Predicates

- [DispatchPredicate.onQueue(_:)](dispatch/dispatchpredicate/onqueue(_:).md)
- [DispatchPredicate.onQueueAsBarrier(_:)](dispatch/dispatchpredicate/onqueueasbarrier(_:).md)
- [DispatchPredicate.notOnQueue(_:)](dispatch/dispatchpredicate/notonqueue(_:).md)

## Relationships

### Conforms To

- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Dispatch Objects

- [DispatchObject](dispatch/dispatchobject.md)
- [dispatchPrecondition(condition:)](dispatch/dispatchprecondition(condition:).md)
- [Dispatch Objects](dispatch/dispatch-objects.md)
