You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Course: Android Basics with Compose
Module: Connect to the Internet - Get Data
Section: Introduction to Coroutines in Kotlin Playground
In this section, the content briefs about Cancellation in Coroutines. There is an issue with the explanation here. Please refer to the below image
In this example, it is mentioned that "The weather report only consists of the weather forecast Sunny, but not the temperature because that coroutine was cancelled."
But the reason why weather report only consists of weather forecast Sunny but not temperature because we are not returning temperature back.
If the temperature coroutine is cancelled and if we try to return temperature, it returns following error - DeferredCoroutine was cancelled
If coroutine is not cancelled and if we don't return temperature, the code will print weather forecast Sunny without temperature anyway
So cancel and temperature not being in the weather forecast have no relation and the example given does not make sense
The text was updated successfully, but these errors were encountered:
Course: Android Basics with Compose
Module: Connect to the Internet - Get Data
Section: Introduction to Coroutines in Kotlin Playground
In this section, the content briefs about Cancellation in Coroutines. There is an issue with the explanation here. Please refer to the below image
In this example, it is mentioned that "The weather report only consists of the weather forecast Sunny, but not the temperature because that coroutine was cancelled."
But the reason why weather report only consists of weather forecast Sunny but not temperature because we are not returning temperature back.
So cancel and temperature not being in the weather forecast have no relation and the example given does not make sense
The text was updated successfully, but these errors were encountered: