• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Sequencing download sessions?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Sequencing download sessions?
      • From: "Quinn \"The Eskimo!\"" <email@hidden>
  • Next by Date: Re: Sequencing download sessions?
  • Next by thread: Re: Sequencing download sessions?
  • Index(es):
    • Date
    • Thread