-
-
Save saeedashrafy/90e819ad97c9f96c77afeec63f1cab05 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class HomeViewModel(private val getFoodsUseCase: GetFoodUseCase) : ViewModel() { | |
private val _intentFlow = MutableSharedFlow<ViewIntent>(extraBufferCapacity = 64) | |
val viewState: StateFlow<ViewState> | |
suspend fun processIntents(viewIntent: ViewIntent) = _intentFlow.emit(viewIntent) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment