Last active
February 28, 2021 12:25
-
-
Save raulh82vlc/28abc4aca33294c7dee5afde5d17b4ee to your computer and use it in GitHub Desktop.
UseCaseStateFlow contract
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
/** | |
* 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