Posted on

SharedFlow vs StateFlow

https://kt.academy/article/sharedflow_vs_stateflow

StateFlow and SharedFlow seem similar, but they are designed for different use cases, and they should not be confused. Let’s discuss the key differences and usages.

Let’s start with how they work. SharedFlow resembles a broadcast channel—emitted values are delivered to all observers. It allows setting a replay parameter specifying how many past values should be emitted to new observers.

Posted on

Kotlin coroutines, actors

A first walk into Kotlin coroutines on Android

Kotlin coroutines on Android
[https://developer.android.com/kotlin/coroutines]

Kotlin flows on Android
[https://developer.android.com/kotlin/flow]

Coroutines
[https://kotlinlang.org/docs/coroutines-basics.html]

Android Coroutine Recipes [https://proandroiddev.com/android-coroutine-recipes-33467a4302e9]

Best practices for coroutines in Android
[https://developer.android.com/kotlin/coroutines/coroutines-best-practices]

Concurrent Programming in Kotlin: Coroutines

Simple asynchronous loading with Kotlin Coroutines ; https://hellsoft.se/simple-asynchronous-loading-with-kotlin-coroutines-f26408f97f46; + LifecycleObserver; + Kotlin Coroutine DSL
Continue reading Kotlin coroutines, actors

Posted on

The Evolution of Android Network Access

Modern background execution in Android [https://android-developers.googleblog.com/2018/10/modern-background-execution-in-android.html]

Background Processing in Android [https://medium.com/@julian_falcionelli/background-processing-in-android-575fd4ecf769]
Background Processing in Android (Part 2) [https://medium.com/major-league/background-processing-in-android-part-2-88c73c24a2ac]
Continue reading The Evolution of Android Network Access