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
spec: Unexpect deadlock on select multi channel #23728
Comments
A select statement evaluates all values to be sent on a channel before choosing a case. In this example this means that Closing because this is working as expected. |
@ianlancetaylor thx! |
https://play.golang.org/p/fJXhK8w22uu But if I put it in a goroutine, the result is confused: https://play.golang.org/p/oUmMr8TM2sz success notice line 25 when I use
instead of:
it works. |
Unlike some other projects, we don't use the issue tracker for discussion. We only use it for bug reports. Please take any discussion to a forum; see https://golang.org/wiki/Questions. Thanks. |
@ianlancetaylor OK. |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.9.3 darwin/amd64
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?What did you do?
code: https://play.golang.org/p/8rcO11QS8un
What did you expect to see?
I think it should not deadlock.
What did you see instead?
The text was updated successfully, but these errors were encountered: