Contents

init()

Creates a task metrics instance.

Declaration

init()

Discussion

You should never need to create your own URLSessionTaskMetrics instances. If you are interested in task metrics, implement the urlSession(_:task:didFinishCollecting:) method of URLSessionTaskDelegate. The URLSession will collect task metrics for you and deliver them to this method.