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

Kotlin Coroutines codelab

Results 87 codelab-kotlin-coroutines issues
Sort by recently updated
recently updated
newest added
trafficstars

Prompt to remove TitleRefreshCallback callback cause it's not using anymore.

In https://codelabs.developers.google.com/codelabs/advanced-kotlin-coroutines/#10: ... ... By using combine, we can combine the cached network lookup with our database query. Both of them will run on different coroutines concurrently. That means that...

Step 5. Controlling the UI with coroutines ![Screen Shot 2020-07-29 at 13 40 45](https://user-images.githubusercontent.com/2340784/88790658-28a40880-d1a1-11ea-92ec-a16610bf13f0.png)

In Section 6, under the title **Review the existing code**, it is specified as "Open MainViewModelTest.kt in the androidTest folder." But actually the class **MainViewModelTest.kt** is present in the **test**...

`suspend fun refreshTitle() { // interact with *blocking* network and IO calls from a coroutine withContext(Dispatchers.IO) { val result = try { // Make network request using a blocking call...

6. Testing coroutines through behavior Open MainViewModelTest.kt in the androidTest folder. //wrong Open MainViewModelTest.kt in the test folder. // right

https://codelabs.developers.google.com/codelabs/advanced-kotlin-coroutines/#5 In part 6. code given for PlantRepository.kt `fun getPlantsWithGrowZone(growZone: GrowZone) = liveData { etc.` should be `fun getPlantsWithGrowZone(growZone: GrowZone) = liveData

I saw this comment in `MainCoroutineScopeRule` and didn't fully understand what is meant by it: https://github.com/googlecodelabs/kotlin-coroutines/blob/b71b981f8354a92fb3ebda37eceb7461e783d0bf/coroutines-codelab/start/src/test/java/com/example/android/kotlincoroutines/main/utils/MainCoroutineScopeRule.kt#L70 Is this comment saying that I can inject a `TestCoroutineDispatcher` into (for example) `Dispatchers.IO`...

At least, you said "Go ahead and run it. When you click on the main view you should see a snackbar one second later.", but the fact should be "see...

Could you please explain why the codelab's code relies so heavily on exceptions and exception handling? Why are exceptions thrown in normal code flows? Why isn't an alternative used, like...