David Pisoni
01/29/2021, 8:33 PMSharedFlow or StateFlow initialized from a cold Flow (with stateIn(...Eagerly...)) to a var, but then later assign null to the `var`; once there are no subscribers left to the SharedFlow (and no references left to it) will it cancel the original cold Flow (and otherwise free its resources)?bezrukov
02/01/2021, 8:50 AMrefCount equivalent, use SharingStarted.WhileSubscribed() . Otherwise original cold flow will be cancelled once scope (passed to stateIn/shareIn) gets cancelled