I used NSURLConnection
object and called its method cancel
sometimes.
Now I should replace NSURLConnection
-> NSURLSession
. NSURLSession
operates with tasks which have cancel
method too.
The problem is -[NSURLConnection cancel]
just stop the handling of requests but if I use -[NSURLSessionTask cancel]
it produces "cancelling error". So how to properly distinguish if cancel
is called manually or if a real error is occurred?