<is it ok to use value field in coroutines?> I hav...
# stackoverflow
u
is it ok to use value field in coroutines? I have a flow that contains the user's info(as a single object). there are some operations, that need to access the mentioned flow, in a single-shot op. no observing, just reading the required info once. I know there are single() and other functions that can do the thing, but my question is, is it ok to use value property of the flow instead of those functions? the flow is a StateFlow so value is immutable and I want to access the field only in the view model so I'm not violating encapsulation.