Marc Knaup
02/17/2021, 7:22 PMMutableStateFlow
so that I can do something with new values before they are sent downstream?
E.g.
fun <Value: Any> persistedFlow(key: String, serializer: KSerializer<Value>): MutableStateFlow<Value?> =
save(MutableStateFlow(value = load(key, serializer)), key, serializer)
How would I implement save
?
According to the docs:
Theinterface is not stable for inheritance in 3rd party libraries (…)MutableStateFlow
gildor
03/02/2021, 12:08 PM