Are there situations when `viewLifecycleOwner.life...
# android
f
Are there situations when
viewLifecycleOwner.lifecycleScope.launch
(instead of
launchWhenStarted
) would crash if it collected a value while the app is in the background?
i
Sure, if you do a FragmentTransaction in response to that value changing, that is only guaranteed to be safe if you're started, hence
launchWhenStarted
would never crash, but
launch
certainly could
👍 1
f
Thank you!