title: How to call multiple APIs in parallel on swift
body: <p>I am calling 20+ apis for different different clients, and manipulating these on one UItableview where some APIs take time for some time (this depends on their services), here if any API response is stuck, the next API waits till the first API response.</p>
  <p>Here I want to get all responses in parallel, if any API is stuck, this will not affect other API responses. find a sample API request</p>
  <pre><code>func getC1(){
      
      let parameterDictionary = NSMutableDictionary()
      
      parameterDictionary.setValue(DataManager.getVal(&quot;CE627802&quot;), forKey: &quot;c_id&quot;)
      
      let methodName = &quot;api_quotes/get_quote&quot;
      DataManager.getAPIResponseLive(parameterDictionary , methodName: methodName){
          (responseData,error)-&gt; Void in
          
          let status  = DataManager.getVal(responseData?[&quot;status&quot;]) as? String ?? &quot;&quot;
          
          if status == &quot;1&quot;{
              
              //append on tableview
          }
      }
      
  }
  </code></pre>