Mouaad
05/10/2020, 2:56 PMMutableStateFlow
interface documentation says:
A mutable [StateFlow] that provides a setter for [value] and a method to [close] the flow.
However, I can’t see any close
method! I am missing something ?octylFractal
05/10/2020, 3:03 PMstreetsofboston
05/10/2020, 3:12 PMFlow
which don't need a close either. The lifecycle of the Flow (and MutableStateFlow) is determined by the collector (the CoroutineScope in which collect
is called)octylFractal
05/10/2020, 3:13 PMstreetsofboston
05/10/2020, 3:16 PMMouaad
05/10/2020, 3:32 PMelizarov
05/10/2020, 6:28 PM