Daniele Segato
07/13/2021, 2:40 PMgetDataFlow()
.onStart {
coroutineScope {
launch { repository.refresh() }
} // this wait refresh to be finished
}
the above code in onStart wait the refresh to finish according to coroutineScope
documentation, I need the repository.refresh()
to run in parallel and just be canceled with the flowDaniele Segato
07/13/2021, 3:00 PM