title: iOS Box API - wait for request to finish
body: <p>Is there a way to wait for the Box API to finish all requests? So for example, if I make a folder item request, I would like to have my program wait for the completion handler to finish before moving on.</p>
  
  <p>As an example:</p>
  
  <pre><code>BOXContentClient *contentClient = [BOXContentClient defaultClient];
  
  BOXFolderItemsRequest *listAllInRoot = [contentClient folderItemsRequestWithID:BOXAPIFolderIDRoot];
  
  [listAllInRoot performRequestWithCompletion:^(NSArray *items, NSError *error) {
      //Do something with the results here
  }
  
  // Wait here for the completion handler to finish before moving on
  </code></pre>
  
  <p>I had a go at using an NSCondition, however I am wondering if there's a better way.  </p>