---
title: "DispatchPredicate.onQueue(_:)"
framework: dispatch
role: symbol
role_heading: Case
path: "dispatch/dispatchpredicate/onqueue(_:)"
---

# DispatchPredicate.onQueue(_:)

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

## Declaration

```swift
case onQueue(DispatchQueue)
```

## See Also

### Predicates

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