---
title: delegateQueue
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/urlsession/delegatequeue
---

# delegateQueue

The operation queue provided when this object was created.

## Declaration

```swift
var delegateQueue: OperationQueue { get }
```

## Mentioned in

Processing URL session data task results with Combine

## Discussion

Discussion All delegate method calls and completion handlers related to the session are performed on this queue. The session object keeps a strong reference to this queue until your app exits or the session object is deallocated. If you do not invalidate the session, your app leaks memory until it exits. note: This queue must be set at object creation time and may not be changed.

## See Also

### Working with a delegate

- [delegate](foundation/urlsession/delegate.md)
- [URLSessionDelegate](foundation/urlsessiondelegate.md)
- [URLSessionTaskDelegate](foundation/urlsessiontaskdelegate.md)
