https://kotlinlang.org logo
#coroutines
Title
# coroutines
z

zak.taccardi

10/07/2019, 6:10 PM
should a function or property be used to represent a ViewModel’s stream of states? vote
1
for property and
2
for function
1️⃣ 10
which is more “idiomatic” ?
z

Zach Klippenstein (he/him) [MOD]

10/07/2019, 9:11 PM
I would expect
state: State
to be a property, so I would also expect the reactive version of that to be a property.
👍 1
1
Also this follows property/function guidelines since the flow itself is cheap to calculate and doesn’t change over time.
4 Views