• 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
Re: Canceling and then retrying a bunch of tasks
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Canceling and then retrying a bunch of tasks


  • Subject: Re: Canceling and then retrying a bunch of tasks
  • From: Rick Mann <email@hidden>
  • Date: Wed, 09 Dec 2015 01:49:09 -0800

> On Dec 9, 2015, at 01:29 , Quinn The Eskimo! <email@hidden> wrote:
>
>
> On 8 Dec 2015, at 22:32, Rick Mann <email@hidden> wrote:
>
>> All because NSURLSession has no mechanism to determine if it's finished with everything.
>
> But it does have that, namely the -URLSession:didBecomeInvalidWithError: delegate callback.  You should just have all the failed tasks record that they've failed and have -URLSession:didBecomeInvalidWithError: start tasks for the failed ones.

The docs say "If you call the invalidateAndCancel method, the session calls this delegate method immediately." So, it's no different.

Unless...does the delegate get called only once, because I'll have to call invalidateAndCancel for every task that fails.


--
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: Canceling and then retrying a bunch of tasks
      • From: "Quinn \"The Eskimo!\"" <email@hidden>
References: 
 >Canceling and then retrying a bunch of tasks (From: Rick Mann <email@hidden>)
 >Re: Canceling and then retrying a bunch of tasks (From: Jens Alfke <email@hidden>)
 >Re: Canceling and then retrying a bunch of tasks (From: Rick Mann <email@hidden>)
 >Re: Canceling and then retrying a bunch of tasks (From: "Quinn \"The Eskimo!\"" <email@hidden>)
 >Re: Canceling and then retrying a bunch of tasks (From: Rick Mann <email@hidden>)
 >Re: Canceling and then retrying a bunch of tasks (From: "Quinn \"The Eskimo!\"" <email@hidden>)

  • Prev by Date: Re: Canceling and then retrying a bunch of tasks
  • Next by Date: Re: Canceling and then retrying a bunch of tasks
  • Previous by thread: Re: Canceling and then retrying a bunch of tasks
  • Next by thread: Re: Canceling and then retrying a bunch of tasks
  • Index(es):
    • Date
    • Thread