I'm getting started using coroutines and attemptin...
# coroutines
d
I'm getting started using coroutines and attempting to do a fan out with single producer and multiple consumers. if executing via main, what's the best way to signal the main thread when consumers are done consuming without using
delay
?
e
Keep track of all consuming coroutines (put them in a list) and use joinAll() on that list.
d
will that work even if consumers are calling an async api? thanks for reply
e
Yes.
d
works great. thanks again!