codelab-kotlin-coroutines icon indicating copy to clipboard operation
codelab-kotlin-coroutines copied to clipboard

spinner.value/postValue

Open gcottenc opened this issue 5 years ago • 0 comments
trafficstars

https://codelabs.developers.google.com/codelabs/kotlin-coroutines/#6

When it gets a result, it clears the loading spinner with _spinner.value = false

->

When it gets a result, it clears the loading spinner with _spinner.postValue(false)

(maybe you like to write why you use postValue, I guess to make sure it's run on the main (UI) thread)

gcottenc avatar Sep 09 '20 09:09 gcottenc