https://kotlinlang.org logo
Title
s

stojan

06/08/2021, 3:08 PM
What would be the best way to launch a coroutine in a
RecyclerView.ViewHolder
(I need to load an image, and offload that to a background thread) Not sure if this channel, or #android is better....
a

Adam Powell

06/08/2021, 3:19 PM
https://github.com/yigit/suspend-bind may be interesting to you 🙂
s

stojan

06/08/2021, 3:21 PM
thanks Adam, I will check it out
a

Adam Powell

06/08/2021, 3:25 PM
Also a twitter thread from a couple months ago where some of us were playing with related ideas: https://twitter.com/adamwp/status/1378471350277300228?s=19
Combine these two things and you basically get compose minus compose in terms of a mental model and data flow, there's just a lot more manual wire-up
:thank-you: 1