title: Xcode7 swift function needs to much time? Race condition?
body: <p>i have a problem in my Xcode 7 Project, regarding Facebook.
  When trying to retrieve my data, with a graph request, the function returnUserData finishes too late?</p>
  
  <pre><code>//...
  returnUserData()
  print("finished")
  //...
  </code></pre>
  
  <p>And this is the function:</p>
  
  <pre><code>func returnUserData() {
          let graphRequest : FBSDKGraphRequest = FBSDKGraphRequest(graphPath: "me", parameters: ["fields": "id, name, first_name, last_name, email"])
          graphRequest.startWithCompletionHandler({ (connection, result, error) -&gt; Void in
          if error == nil
              {
                  //print("fetched user: \(result)")
                  print("start");
                  self.username = result.valueForKey("name") as! NSString
                  //NSUserDefaults.standardUserDefaults().setObject(self.username, forKey: "name")
                  //NSUserDefaults.standardUserDefaults().synchronize()
                  print("1: " + (self.username as String))
              }
          else if (error != nil)
              {
                  // Process error
                  print("Error: \(error)")
              }
          })
  
      }
  </code></pre>
  
  <p>But this is, what happens, look at the order:</p>
  
  <pre><code>finished
  start
  1: My Name
  </code></pre>
  
  <p>How can i prevent this?</p>