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

附录A中Goroutine泄露问题 #519

Open
legofun opened this issue Aug 21, 2020 · 1 comment
Open

附录A中Goroutine泄露问题 #519

legofun opened this issue Aug 21, 2020 · 1 comment

Comments

@legofun
Copy link

legofun commented Aug 21, 2020

实例中的代码应该不会造成泄露吧?main函数结束后所有Goroutine无论如何都会退出,应该是子函数起的Goroutine,子函数退出后Goroutine会泄露

@chai2010
Copy link
Owner

所谓的内存泄漏是指进程还没有死的时候。如果main函数退出进程就死了,泄漏也不是问题了

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

2 participants