• 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: "Quinn \"The Eskimo!\"" <email@hidden>
  • Date: Wed, 09 Dec 2015 11:58:56 +0000

On 9 Dec 2015, at 11:54, Quinn The Eskimo! <email@hidden> wrote:

> On 9 Dec 2015, at 11:49, Rick Mann <email@hidden> wrote:
>
>> Is this also true when using completion blocks?
>
> Yes.

Sorry, that's too succinct.  To expand…

My understanding is that task completion is always signalled—by calling the delegate (-URLSession:task:didCompleteWithError:) or the completion block depending on how the task was started—before -URLSession:didBecomeInvalidWithError: is called, which is always the last delegate callback.

I just confirmed that understanding by running a test project (on iOS 9.2).

Furthermore, my understanding is that NSURLSession has always behaved this way, although I'm not in a position to test it on previous systems or other platforms.

Share and Enjoy
--
Quinn "The Eskimo!"                    <http://www.apple.com/developer/>
Apple Developer Relations, Developer Technical Support, Core OS/Hardware



 _______________________________________________
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


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>)
 >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: NSURLSession delegate, Kerberos, and NSURLAuthenticationMethodNegotiate
  • 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