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

dave08

10/04/2018, 2:55 PM
Maybe that's what you're looking for?
e

enleur

10/04/2018, 2:58 PM
this is what i’m using now. actor pattern with fanout, but i don’t like that I have ~200 coroutines waiting. I know it’s ok to run 1million coroutines but I’m looking for another way to do this
u

uhe

10/04/2018, 3:07 PM
I'm not quite sure about your actual domain, but if those 200 coroutines represent 200 calls to
execute
from legitmate users of that function, I don't see how you can reduce that number other than just plainly discarding them.
I think you're good with what you have (apart from the fact that you actually have
size+1
workers 😉 )
4 Views