How can i trigger a non-blocking refresh inside a ...
# coroutines
d
How can i trigger a non-blocking refresh inside a flow?
Copy code
getDataFlow()
  .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 flow
Nevermind, dumb question. I just need to envelope the flow in a wider coroutineContext and launch from it