ursus
10/18/2020, 4:37 PMviewModel.state
flow in android Activity, between onStart and onStop
I do that, and notice that after having activity.onStop called, next activity.onStart doesn't start listening to the flow
So I conclude scopes are not reusable
But this is android reality and I need that. I need equivalent of rx compositeDisposable.clear()
Is the only solution to have abstraction over the scope which will create new scope instances?flosch
10/18/2020, 5:18 PMIan Lake
10/18/2020, 5:22 PMlifecycleScope.launchWhenStarted
Ian Lake
10/18/2020, 5:26 PMursus
10/18/2020, 6:47 PMIan Lake
10/18/2020, 7:16 PM