title: Mixed order in DidSelectRowAt method
body: <p>I dont understand why my debugger first goes do the bottom of the method, I mean, it ignores Api calls at first, goes to the bottom of the methos, and then goes back to the Api calls.
  <br>
  Like this:</p>
  <pre><code>override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
  let vc = UIStoryboard.init(name: &quot;Main&quot;, bundle: Bundle.main).instantiateViewController(withIdentifier: &quot;SecondVC&quot;) as? SecondVC
  
  //Method for AlamoFire API call 1 here
  APIManager.shared.getDetailsCity(city: indexPath.row){ (details) in
  //code for the method
  }
  
  //Method2 for AlamoFire API call 2 here
  APIManager.shared.getDetailsCountry(country: indexPath.row){ (details) in
  //code for the method2
  }
  self.navigationController?.pushViewController(secondVC!, animated: true)
  }
  </code></pre>
  <p><code>code for the method</code> and <code>code for the method2</code> is produced after all other things.
  <br>
  Also, sometimes <code>code for the method2</code> is read before <code>code for the method</code></p>