android / codelab-kotlin-coroutines

Kotlin Coroutines codelab
Apache License 2.0
552 stars 268 forks source link

Explanation is not compliant with code #164

Open jmarsican opened 2 years ago

jmarsican commented 2 years ago

The following explanation does not apply to the code it refers to:

This implementation uses a callback to do a few things:

Before it starts a query, it displays a loading spinner with _spinner.value = true When it gets a result, it clears the loading spinner with _spinner.value = false

The implementation with callbacks displays loading spinner with _spinner.postValue() in order to switch back to main thread