Hi! Is there a way to have `moleculeFlow` or `laun...
# squarelibraries
p
Hi! Is there a way to have
moleculeFlow
or
launchMolecule
only work when the resuting flow is being subscribed to? I’m trying to achieve a behavior similar to
SharingStarted.WhileSubscribed
so I can stop all processing when app is in background when collecting the resulting flow using
flowWithLifecycle
,
repeatOnLifecycle
or, in Compose UI,
collectAsStateWithLifecycle
.