> On Dec 9, 2015, at 01:29 , Quinn The Eskimo! <eski...@apple.com> wrote:
> 
> 
> On 8 Dec 2015, at 22:32, Rick Mann <rm...@latencyzero.com> 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
rm...@latencyzero.com



 _______________________________________________
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