URLSession has many scheduled tasks, in what order do they execute?

URLSession (background, if it matters), is configured to only allow two connections to a host. Say a dozen are created, and after each is created it's told to "resume".

The first two should start immediately, since the session is allowed two, and there are 0 or 1 when the task is resumed.

But how about the other 10 that were told to resume too - is the order they get scheduled in random, or deterministic?

David

But how about the other 10 that were told to resume too - is the order they get scheduled … ?

The system makes no guarantees about this order.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"
URLSession has many scheduled tasks, in what order do they execute?
 
 
Q