https://kotlinlang.org logo
Title
s

spierce7

12/14/2017, 5:17 PM
Are there any samples of coroutines being used in kotlin-native to manage code running on background threads?
1
o

olonho

12/15/2017, 7:15 AM
I am not aware of this, and moreover not even sure if it's a good way to reason about concurrent programming. Probably conjunction of coroutines and workers would do better.
s

spierce7

12/16/2017, 7:36 AM
are there any samples of this?
o

olonho

12/16/2017, 12:37 PM
we could develop one, do you have any practically important usecase where you believe this symbiosis may be helpful?
s

spierce7

12/16/2017, 1:29 PM
Sorry, I didn't mean my original question. I was actually asking referencing something you said to me 10 days ago "Sure, the whole idea beyond workers is computations offload, if you want to share threads - coroutines are way to go."
Was just trying to find some samples of this