Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

panic: send on closed channel #214

Open
orestonce opened this issue Sep 14, 2020 · 0 comments
Open

panic: send on closed channel #214

orestonce opened this issue Sep 14, 2020 · 0 comments

Comments

@orestonce
Copy link

  • startWG.Done does not ensure that s.Start() returns to completion, nor does it ensure that the writing of errs <- err is completed. Calling close(errs) directly after startWg.Wait() may close a channel being written to, resulting in panic。

close(errs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant