In NSURLSession, we add tasks to a session by methods like
- dataTaskWithRequest:
- dataTaskWithRequest:completionHandler:
As far as I understand, if we use the one without completionHandler or use nil for completionHandler, self will be used automatically as the delegate and we can expect delegate methods to be called. Do I understand correctly?
Is there possible to specify different delegate (other than self ) for each task?
I checked sessionWithConfiguration:delegate:delegateQueue and I think that delegate is a NSURLSessionDelegate.