Rob
02/26/2021, 3:14 PMMutableStateFlow<T : Any>
where the initial value is not set immediately? I am migrating from RxJava2 BehaviorSubject<T : Any>
. The value is not initialized until some process finishes. Observers of the value are transient. I would rather it not be a T?
where I filter out the initial null value. Thanks!Tijl
02/26/2021, 3:20 PMSharedFlow
MutableSharedFlow
to be exactRob
02/26/2021, 3:21 PMTijl
02/26/2021, 3:21 PMRob
02/26/2021, 3:24 PMTijl
02/26/2021, 3:24 PMgildor
03/01/2021, 4:46 AMis similar to SharedFlowIt’s not just similar, it is essentially SharedFlow with replace 1 (though both MutableSharedFlow and MutableStateFlow have some own features, but both based on AbstractSharedFlow implementation) https://github.com/Kotlin/kotlinx.coroutines/blob/master/kotlinx-coroutines-core/common/src/flow/StateFlow.kt#L76-L80
Tijl
03/01/2021, 10:07 AM