Instance Property


The time interval between when a task is instantiated and when the task is completed.


var taskInterval: DateInterval { get }

See Also

Accessing Task Metrics

var transactionMetrics: [URLSessionTaskTransactionMetrics]

An array of metrics for each individual request-response transaction made during the execution of the task.

class URLSessionTaskTransactionMetrics

An object encapsulating the performance metrics collected during the execution of a session task.

var redirectCount: Int

The number of redirects that occurred during the execution of the task.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software