We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Linux
1.20
github.com/bytedance/gopkg v0.0.0-20240202110943-5e26950c5e57
func (c *channel) consume() { for { // ... c.consumer <- it.value // 当外部关闭时,此行有泄漏风险 atomic.AddUint64(&c.consumed, 1) } }
关闭channel时不泄漏
关闭channel时会泄漏
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Operating System
Linux
Go Version
1.20
Package Version
github.com/bytedance/gopkg v0.0.0-20240202110943-5e26950c5e57
Affected Packages
Expected Behavior
关闭channel时不泄漏
Actual Behavior
关闭channel时会泄漏
Reproduction Steps
Other Information
No response
The text was updated successfully, but these errors were encountered: