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

zokipirlo

12/06/2018, 3:42 PM
Simple__non-working__example.kt
d

dave08

12/07/2018, 3:49 AM
It looks like you can just check the not contains inside the actor, not at calling site, and it should be fine...
z

zokipirlo

12/07/2018, 7:20 AM
Yes, that's true, but don't want to "wake" actor when it's not necessary.
d

dave08

12/07/2018, 8:56 AM
It's either waking it, or using some kind of ConcurrentList, depending on the use case one might be a better choice than the other.
z

zokipirlo

12/07/2018, 10:54 AM
Thanks!
3 Views