https://kotlinlang.org logo
#random
Title
u

ursus

01/23/2020, 12:02 AM
I'd like some multithreading advice. Im trying to write an view model abstraction which has State, and I'm wondering if I should prohobit reading the state off main thread. I.e. both writes and reads of the State only on main thread
d

dawidhyzy

01/23/2020, 5:46 AM
I don’t thinks it’s a right place to ask such question. Maybe try to check how some libraries/frameworks do that. For example: MvRx or Orbit MVI. https://github.com/airbnb/MvRx https://github.com/babylonhealth/orbit-mvi #orbit-android-mvi