Ajaydeepak07
06/03/2021, 5:47 AMsuspend fun doCall(list: ArrayList<String>) {
list.forEach {
Api.retrofitService.getProperties(it)
}
}
In this code getProperties() is another suspend function that needs to be called inside doCall() if my list is having more than 1 item for the first item the network call happens and when the iteration comes for next item the list is nulluli
06/04/2021, 11:44 AMAjaydeepak07
06/05/2021, 7:42 AMAjaydeepak07
06/05/2021, 7:42 AM