I need call two API at the same time in view controller.One API (API 1) called every 5 seconds.And other API(API 2) called at the same time . But It will take 1 minutes(Long time to get the response).
My issue is When i call API 2 of that time unable to get response of API 1. API 1 is waiting for complete API 2 Response , After that I got the response of API 1. I want API 1 response. API 1 is No need to wait for API 2 response.
How can i can implement the logic ? Thanks in advance.