Is it bad practice to use `MutableStateFlow` to re...
# flow
e
Is it bad practice to use
MutableStateFlow
to replace
@Volatile var foo: Foo = defaultFoo()
? My main reasoning is that I don't like
var
and it would be easier for multiplatform etc...
a
You should probably just use an atomic reference instead (https://github.com/Kotlin/kotlinx.atomicfu)
🙏 1