Last active
January 14, 2024 14:02
-
-
Save krzdabrowski/1c6f06f7d113a790d86203cb453179a3 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
private fun refreshRockets(): Flow<PartialState> = flow<PartialState> { | |
refreshRocketsUseCase() | |
.onFailure { | |
emit(Error(it)) | |
} | |
}.onStart { | |
emit(Loading) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment