Do not use swift promises library
2. Do not use Alamofire library
Here’s what I want to do:
I want to fetch data from api synchronously so that the tableview renders only when I have the complete data. If the call is asynchronous, multiple tableview reloads have to happen and that’s bad. I tried doing a semaphore with dispatch queue but it didn’t work. Any help is greatly appreciated.