codelab-kotlin-coroutines
codelab-kotlin-coroutines copied to clipboard
Kotlin Coroutines codelab
At step `6`, there is an instruction that says: Open `MainViewModelTest.kt` in the `androidTest` folder. But the `MainViewModeTest.kt` is inside the `test` folder.
It says ``` Remove the Call wrapper from the return type. Here we're returning String, but you could return complex json-backed type as well. If you still wanted to provide...
In step 4 of the Learn advanced coroutines with Kotlin Flow and LiveData, it is stated > Now if the filter button is pressed (and only GrowZone 9 plants are...
https://codelabs.developers.google.com/codelabs/kotlin-coroutines/#4 // _snackbar.value can be called directly from main thread -> // _taps.value can be called directly from main thread Go ahead and run it. When you click on the...
Hi, As the guideline in https://codelabs.developers.google.com/codelabs/advanced-kotlin-coroutines/index.html?index=..%2F..index#13 suggests, the codelab is finished: ``` growZoneChannel.asFlow() .mapLatest { growZone -> _spinner.value = true if (growZone == NoGrowZone) { plantRepository.tryUpdateRecentPlantsCache() } else { plantRepository.tryUpdateRecentPlantsForGrowZoneCache(growZone)...
in https://codelabs.developers.google.com/codelabs/kotlin-coroutines/#6 you write about CoroutineExceptionHandler for uncaught exceptions in https://codelabs.developers.google.com/codelabs/kotlin-coroutines/#7 you write about withContext and you also exemplify using exceptions I saw recently that uncaught exceptions thrown within withContext...
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...
In https://codelabs.developers.google.com/codelabs/advanced-kotlin-coroutines/#10 Double "and". ___________________________________________________________________________________________________________________________________________ So if all we were doing was calling suspend functions in Retrofit **and and** using Room flows, we wouldn't need to complicate this code with...
I guess that is missing the liveData type in this highlighted code  **Resolution**: `liveData`
It is in the 'test' folder.