i would like to perform an expensive operation on ...
# android
l
i would like to perform an expensive operation on a background thread with the use of coroutines. I scanned some documentation and some medium posts and looks like i really need to take a deep dive to understand how to use it. Basically the expensive operation will return a Collection of objects that i will use to populate a RecyclerView.Adapter. Can anyone provide a code snippet or some sample code that can do something like that?
d
Use
launch
.
more specifically section 8: Channels