On 9 Dec 2015, at 11:54, Quinn The Eskimo! <eski...@apple.com> wrote:

> On 9 Dec 2015, at 11:49, Rick Mann <rm...@latencyzero.com> 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      (Macnetworkprog@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/macnetworkprog/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to