[Bug]: Potential goroutine leak in pool.go #276
Labels
bug
Something isn't working
invalid
This doesn't seem right
needs investigation
This issue or proposal needs some investigations
waiting for response
waiting for the response from commenter
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
The text was updated successfully, but these errors were encountered: