https://kotlinlang.org logo
#coroutines
Title
# coroutines
k

kenkyee

12/26/2018, 12:31 PM
I don't see any synchronization in that code. The coroutines could conceivably run on different threads unless you give it a single threaded scope AFAIK
a

Allan Wang

12/26/2018, 8:41 PM
If you’re referring to my code, isn’t the point of channels and onReceive so that you don’t have to deal with synchronization? That’s what I understood from the talk
k

kenkyee

12/26/2018, 8:46 PM
I don't remember seeing that mentioned in that talk...watched it at KotlinConf so it's been a while though.
2 Views