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.
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
func getC1(){
let parameterDictionary = NSMutableDictionary()
parameterDictionary.setValue(DataManager.getVal("CE627802"), forKey: "c_id")
let methodName = "api_quotes/get_quote"
DataManager.getAPIResponseLive(parameterDictionary , methodName: methodName){
(responseData,error)-> Void in
let status = DataManager.getVal(responseData?["status"]) as? String ?? ""
if status == "1"{
//append on tableview
}
}
}