Instance Property

delegateQueue

The operation queue provided when this object was created.

Declaration

var delegateQueue: OperationQueue { get }

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.

See Also

Working with a Delegate

var delegate: URLSessionDelegate?

The delegate assigned when this object was created.

protocol URLSessionDelegate

A protocol that defines methods that URL session instances call on their delegates to handle session-level events, like session life cycle changes.

protocol URLSessionTaskDelegate

A protocol that defines methods that URL session instances call on their delegates to handle task-level events.