codelab-kotlin-coroutines
codelab-kotlin-coroutines copied to clipboard
Kotlin Coroutines codelab
In the list with PLANTS, when filter button is pressed emitting of new live data and sorting is executed more than once. I added logging to be more clear: In...
In step [14. Controlling concurrency with flow](https://developer.android.com/codelabs/advanced-kotlin-coroutines#13) Open up PlantListViewModel.kt, and add this to the init block: init { clearGrowZoneNumber() growZone.mapLatest { growZone -> ... } "growZone.mapLatest" is wrong, the...
I fixed a typo in PlantListViewModel.
In https://developer.android.com/codelabs/kotlin-coroutines?authuser=1#4 the first link on CoroutineScope returns a 404. It points to: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.experimental/-coroutine-scope/ should be: https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/-coroutine-scope/
In 10 step of coroutines codelab https://developer.android.com/codelabs/kotlin-coroutines#9 user is expected to write unit test which checks for the timeout of `TitleRepository.refreshTitle()` Current version looks next: ``` @Test(expected = TitleRefreshError::class) fun...
I was going to start checking the "Android Room with a View Component: Kotlin" course that identified as dependency the basic knowledge of kotlin coroutines linking this course to learn...
https://developer.android.com/codelabs/building-kotlin-extensions-library#6 in the last chapter : Wrap up and the second last line link with blue mark(this codelab) is not foud
In chapter 12, https://developer.android.com/codelabs/advanced-kotlin-coroutines#11 The title is `Switching between two flows` There are two cases of switching, - functionally switch between `plantsFlow ` and `getPlantsWithGrowZoneFlow` for the particular example app...
As per https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-test/kotlinx.coroutines.test/run-blocking-test.html `runBlockingTest` is deprecated in favour of `runTest`
The recommended first test case won't work any more: @Test fun whenMainClicked_updatesTaps() { subject.onMainViewClicked() Truth.assertThat(subject.taps.getValueForTest()).isEqualTo("0 taps") coroutineScope.advanceTimeBy(1000) Truth.assertThat(subject.taps.getValueForTest()).isEqualTo("1 taps") } Running it as recommended, without any testing context will produce...