Skip to content

Instantly share code, notes, and snippets.

@tdcolvin
Created June 26, 2023 21:55
Show Gist options
  • Select an option

  • Save tdcolvin/e1abfc16d885173be33ef44f1f0492af to your computer and use it in GitHub Desktop.

Select an option

Save tdcolvin/e1abfc16d885173be33ef44f1f0492af to your computer and use it in GitHub Desktop.
fun deletePlanet(planetId: String) {
viewModelScope.launch {
planetsRepository.deletePlanet(planetId)
}
}
fun refreshPlanetsList() {
viewModelScope.launch {
planetsRepository.refreshPlanets()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment