Almost the only option for us is sleep(n)
(if you are familiar with SIGNAL, you can also use it). We are familiar with it, so let's pass it.
There is resource called semaphore
, use it can make your code more robust and more efficient.
NSMutableURLRequest *request = [[NSMutableURLRequest alloc] initWithURL:[NSURL URLWithString:@"http://www.google.com"]];