Skip to content

why the task channel of the workers not be closed #341

Answered by panjf2000
yugu2day asked this question in Q&A
Discussion options

You must be logged in to vote

Like you said, there wouldn't be any memory leaks, so why should we bother to close it? I don't see any obligated instructions about closing the used channels in the Go specification and effective Go. Generally speaking, we need a reason to do something more than a reason not to do something.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@yugu2day
Comment options

Answer selected by yugu2day
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants