You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One general principle of using Go channels is don't close a channel from the receiver side and don't close a channel if the channel has multiple concurrent senders.
PS. I would rather use sync.WaitGroup like I suggest in another comment.
Why we are closing the channel?
Reference: https://go101.org/article/channel-closing.html
PS. I would rather use
sync.WaitGroup
like I suggest in another comment.Originally posted by @pellared in #4395 (comment)
The text was updated successfully, but these errors were encountered: