CleanWeather icon indicating copy to clipboard operation
CleanWeather copied to clipboard

[Question] couroutine question

Open tak1111 opened this issue 4 years ago • 2 comments

in 'WeatherUseCase', 'OpenWeatherTemperatureRepository'

why use 'coroutineScope'??

What happens if you don't use it

tak1111 avatar Jun 14 '20 07:06 tak1111

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

fabioCollini avatar Jun 18 '20 10:06 fabioCollini

thanks.

kyle8997 avatar Jul 17 '20 12:07 kyle8997