Fudge
09/18/2021, 8:21 AM.collect {}MutableStateFlowMutableStateFlowemit.collect {}collectFlowcollectcollectCancellationExceptioncollectAlbert Chang
09/18/2021, 8:33 AMmutableStateFlow.value = newValueemit()uli
09/18/2021, 8:59 AMFudge
09/18/2021, 9:16 AMFudge
09/18/2021, 9:16 AMAlbert Chang
09/18/2021, 9:18 AMemit()Fudge
09/18/2021, 9:44 AM.value =Fudge
09/18/2021, 9:45 AMFudge
09/18/2021, 10:12 AMFudge
09/18/2021, 10:13 AMValues in state flow are conflated using Any.equals comparison in a similar way to distinctUntilChanged operator. It is used to conflate incoming updates to value in MutableStateFlow and to suppress emission of the values to collectors when new value is equal to the previously emitted one.Fudge
09/18/2021, 10:14 AMuli
09/18/2021, 10:15 AMFudge
09/18/2021, 10:16 AMFudge
09/18/2021, 10:18 AMFudge
09/18/2021, 10:18 AMAlbert Chang
09/18/2021, 10:21 AMMutableListListAlbert Chang
09/18/2021, 10:21 AMFudge
09/18/2021, 10:24 AM