CleanWeather
CleanWeather copied to clipboard
[Question] couroutine question
in 'WeatherUseCase', 'OpenWeatherTemperatureRepository'
why use 'coroutineScope'??
What happens if you don't use it
coroutineScope
is used to create a nested scope and connect the two calls (so in case of a failure the other one is automatically canceled). It's useful also to manage the exceptions in the right way, you can find more info in this blog post I wrote
thanks.