```suspend fun doCall(list: ArrayList<String&gt...
# coroutines
a
Copy code
suspend 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 null
u
Wild guess. Is the list modified concurrently on another thread?
a
no its not modified
this is the only place its used thats why