Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is connectionWithRequest synchronous?

I wanted to know whether doing:

+ (NSURLConnection *)connectionWithRequest:(NSURLRequest *)request delegate:(id < NSURLConnectionDelegate >)delegate

is synchronous or not? doesn't really say in the docs

If it is synchronous then how do I make it async?

like image 314
aherlambang Avatar asked Jun 28 '26 11:06

aherlambang


1 Answers

Its Asynchronous -

Look at NSURLConnection Class Reference under Tasks - > Loading Data Asynchronously -> + connectionWithRequest:delegate: first method in that list

like image 170
0x8badf00d Avatar answered Jun 30 '26 01:06

0x8badf00d



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!