Re: Canceling and then retrying a bunch of tasks
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