<https://blog.kotlin-academy.com/show-download-pro...
# feed
z
Really cool use of
Flow
, and somehow the first time I've encountered the
payload
mechanism of
RecyclerView
as well. I assume that the
CoroutineScope()
created right there in the
Activity
is just done so that it's easy to
launch
a coroutine from there? As far as I see that leaves no way to cancel the downloads, so something like https://developer.android.com/topic/libraries/architecture/coroutines#lifecyclescope should probably be used instead.
a
Really nice use of this pattern. I can't help but feel this type of thing is a step backwards from retrofit/rxjava though. I understand this version would work for Kotlin Multiplatform but it seems like the Android community is pushing for this change even if KMP isn't the goal