codelab-kotlin-coroutines
codelab-kotlin-coroutines copied to clipboard
Explanation is not compliant with code
trafficstars
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