Sequencing download sessions?
Sequencing download sessions?
- Subject: Sequencing download sessions?
- From: Rick Mann <email@hidden>
- Date: Wed, 06 Jan 2016 16:11:17 -0800
So, individual download tasks within an NSURLSession are throttled by the system, which is great. In my app, we allow the user to download "Models." Each Model is hundreds of files, so there's a session for each one. A download can be canceled by the user or after too many errors.
But if the user starts several models downloading simultaneously, things seem to get very unreliable, and which individual download tasks get scheduled seems random.
Is there a way to sequence sessions so that one isn't started until the previous one completes?
The problem with me sequencing them manually is twofold:
1) It's more work on my part, and not trivial
2) I can't make that work in the background (I don't think; there would be nothing to start the next session after another completes).
TIA,
--
Rick Mann
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden