Join Slack
Powered by
Is it bad practice to use `MutableStateFlow` to re...
# flow
e
eygraber
02/22/2021, 10:33 PM
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
Alex Vasilkov
02/23/2021, 6:19 AM
You should probably just use an atomic reference instead (
https://github.com/Kotlin/kotlinx.atomicfu
)
🙏 1
13
Views
Open in Slack
Previous
Next