https://kotlinlang.org logo
Title
l

lawlorslaw

09/02/2019, 3:16 AM
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

Dominaezzz

09/02/2019, 11:23 AM
Use
launch
.
more specifically section 8: Channels