Reputation: 387
It appears that URLSessionTaskMetrics
contains an array of transactionMetrics
and as per Apple's documentation, the transactionMetrics
contains "An array of metrics for each individual request-response transaction made during the execution of the task". My question is how does a URLSessionTask
have multiple requests? When we create a session task we create it with a single request object, so how is it possible for a single session task to contain an array of metrics? Shouldn't it be only one?
Upvotes: 0
Views: 559
Reputation: 91
there are two cases, I can get.
try print transactionMetrics and compare the difference between them.
Upvotes: 0