title: iOS Handling Multiple Asynchronous Requests: Send a Signal When All Requests Are Finished
body: <p>So I am browsing over Stack Overflow for ways to handle asynchronous requests effectively. Right now I am using ASIHTTPRequest and my application consumes a REST API, in which a request to a single resource prompts me to request 5 or more additional resources (linked resources).</p>
  
  <p>Right now I am doing all asynchronous request inside one huge method, there may be around 6 asynchronous request each with their setCompletionBlock and setFailBlock. If you have used ASIHTTPRequest, you must have an idea of how much repetitive code that will take.</p>
  
  <p>Anyway, I seem to have found a solution to determine if all requests are finished with this answer:
  <a href="https://stackoverflow.com/questions/5611191/multiple-asynchronous-url-requests/5611222#5611222">Multiple asynchronous URL requests</a></p>
  
  <p>however, I don't know how to apply that answer in code ,as I have not used push notifications before and I have always used "self" as delegats and never other classes.</p>
  
  <p>Any ideas how I can apply the answer to code or better yet, do you know of any other methods?</p>
  
  <p>Thanks in advance!</p>