Patrick Steiger
03/05/2023, 11:55 PMsubscriptionCount a property of MutableSharedFlow instead of SharedFlow ?elizarov
03/06/2023, 8:21 AMSharedFlow is a “consumer interface” while a MutableSharedFlow is the corresponding “producer interface”. The design assumes that it is only in producer’s right to know the subscription count, so that it can adjust producing strategy appropriately.Patrick Steiger
03/06/2023, 4:02 PMelizarov
03/06/2023, 4:26 PMshareIn and stateIn. It is them who manage sharing in this case. If you want to manage it, instead, then create your own instance of MutableShared/StateFlow like share/stateIn implementation does.Patrick Steiger
03/06/2023, 4:52 PM