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

[勘误]有方向的 channel 不可以被关闭 #3

Closed
bynil opened this issue Aug 28, 2020 · 0 comments
Closed

[勘误]有方向的 channel 不可以被关闭 #3

bynil opened this issue Aug 28, 2020 · 0 comments

Comments

@bynil
Copy link

bynil commented Aug 28, 2020

更准确的说法是:receive only channel 不能 close,直接编译错误。但 send only channel 是可以被正常 close 的。

参考 https://blog.gopheracademy.com/advent-2019/directional-channels/

betty200744 added a commit that referenced this issue Jan 3, 2022
betty200744 added a commit that referenced this issue Dec 30, 2022
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