Skip to content

Instantly share code, notes, and snippets.

@raulh82vlc
Last active February 28, 2021 12:25
Show Gist options
  • Save raulh82vlc/28abc4aca33294c7dee5afde5d17b4ee to your computer and use it in GitHub Desktop.
Save raulh82vlc/28abc4aca33294c7dee5afde5d17b4ee to your computer and use it in GitHub Desktop.
UseCaseStateFlow contract
/**
* Use case for State Flow defines a unit of execution
*/
interface UseCaseStateFlow<T> {
fun execute(param: String)
fun cancel()
fun getStateFlow(): StateFlow<T>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment