Asynchronously calls a completion callback with all tasks in a session
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
The completion handler to call with the list of tasks.
Managing the Session
Flushes cookies and credentials to disk, clears transient caches, and ensures that future requests occur on a new TCP connection.
Empties all cookies, caches and credential stores, removes disk files, flushes in-progress downloads to disk, and ensures that future requests occur on a new socket.