Raed Ghazal
10/29/2024, 10:36 AMrepeat(100) {
val response = api.getPage(it)
launch {
dao.insert(response.items)
}
}
so potentially if the api response time was less than the insertion time, it could have multiple insertions happening at once, is this safe? or should I have some kind of a queue that makes sure to insert one response at a time?