title: Alamofire multiple requests iteration
body: <p>I have four different requests in my application, three of them requires one call only and the last requires from 1 - 10.</p>
  
  <p>All works fine until the last request when I´m iterating through my data and making the calls. This is my code in <strong>Class1</strong>:</p>
  
  <pre><code>var data = ...
  var points = ...
  
  // I create a new group
  let getPointGroup = dispatch_group_create()
  
  // I iterate through my data
  for d in data{
      // I enter the group
      dispatch_group_enter(getPointGroup)
      dataService.getPoints(d.point), success: { points -&gt; Void in
          points.append(points)
  
          // I leave the group so that I go to the next iteration
          dispatch_group_leave(getPointGroup)
      }
  }
  </code></pre>
  
  <p>Alamofire request looks like this in <strong>Class2</strong>:</p>
  
  <pre><code>let headers = [
      "Authorization": "Bearer \(token)",
      "Content-Type": "application/x-www-form-urlencoded"
  ]
  
  Alamofire.request(.GET, url, headers:headers)
      .responseJSON { response in
          switch response.result {
          case .Success:
              let json = JSON(data: response.data!)
              print(json)
              success(json)
          case .Failure(let error):
              print(error)
          }
  }
  </code></pre>
  
  <p>But I never hit the GET request, if I remove the iteration completely and just call the Alamofire request once it works perfectly.</p>
  
  <p>Any ideas of how to solve the Alamofire iteration request?</p>
  
  <p><strong>Edit</strong><br>
  Not really a duplicate, I have the snippets below in the different classes and the example does not really solve my issue</p>