Brian Estrada
06/26/2022, 9:39 PMSharedFlow
and StateFlow
but none of these seem to keep the items in a buffer once they’re read they’re gone. I would normally use a BehaviorSubject in RxJava for this but haven’t been able to find the equvilant in coroutines
Edit: Nevermind, the question MutableSharedFlow
has the ability to do this (you can set it in the constructor and I missed that somehow) thanksBrian Estrada
06/26/2022, 9:41 PM