Previously there were two types of request using iOS: sendSynchronousRequest and sendAsynchronousRequest. However, both are deprecated in iOS9. The recommended replacement for both cases: 1 and 2 is pretty the same:
[[NSURLSession sharedSession] dataTaskWithRequest:request
completionHandler:^(NSData *data,
NSURLResponse *response,
NSError *error) {
//A piece of code after response completes.
}] resume];
So, is there no difference anymore between these two in the recent iOS? Why such a decision was made?