[X] I've thoroughly read the documentations on this issue but still have no clue.
[X] I've searched the current list of Github issues but didn't find any duplicate issues that have been solved.
[X] I've searched the internet with this issue, but haven't found anything helpful.
What happened?
I notice the ctx.Done() needs a cancel function to unblock the statement of ctx.Done in https://github.com/panjf2000/ants/blob/dev/pool.go#LL84C21-L84C21,
but I never find the cancel function in its invocation. So if this may leak the goroutine where the ctx.Done() locates?
Maybe what I said is not right, thank you.
Major version of ants
v2
Specific version of ants
v2.6.0
Operating system
Linux
Relevant log output
.
Code snippets (optional)
.
How to Reproduce
.
Does this issue reproduce with the latest release?
I've read the article you provided and failed to see whatever you were seeing for memory leak, that article was talking about time.After which ants never uses.
Actions I've taken before I'm here
What happened?
I notice the ctx.Done() needs a cancel function to unblock the statement of ctx.Done in https://github.com/panjf2000/ants/blob/dev/pool.go#LL84C21-L84C21, but I never find the cancel function in its invocation. So if this may leak the goroutine where the ctx.Done() locates?
Maybe what I said is not right, thank you.
Major version of ants
v2
Specific version of ants
v2.6.0
Operating system
Linux
Relevant log output
Code snippets (optional)
How to Reproduce
.
Does this issue reproduce with the latest release?
I haven't verified it with the latest release