<Set a MutableStateFlow value> What is the differe...
# stackoverflow
u
Set a MutableStateFlow value What is the difference between these two approaches used to pass data through a StateFlow? 1. _stateFlowInstance.value = somedata 2. _stateFlowInstance.emit(somedata) I know that emit is a suspend function and must be called from inside a coroutine, but is there any other use-case related difference?