I have a sample code written using coroutines and ...
# announcements
h
I have a sample code written using coroutines and channel (really just taken from documentation), but when run you can find, what it looks like, weird patterns. In the below example, All co-routines, except the one with id=0 get the exact same number of messages. Moreover, co-routine with id 0 always get 2x number of messages compared to other co-routines. https://gist.github.com/harikb/cb98f55855d8f947aa44b964876b8200 . Is there something simple/rookie-mistake I am making?