4 ms·
Is this something go developers also have to be careful with when using goroutines?
by sgt 4y ago
Is this something go developers also have to be careful with when using goroutines?
- gerad 4y agoNo. But sometimes goroutines have the opposite problem, where they don’t terminate and get cleaned up. https://betterprogramming.pub/common-goroutine-leaks-that-you-should-avoid-fe12d12d6ee https://betterprogramming.pub/common-goroutine-leaks-that-yo...
- deleted 4y ago[deleted]
- candiddevmike 4y agoIs there an (easy?) test for checking goroutine leaks?
- Snawoot 4y agoYes, it's visible on goroutine profile, provided by built-in profiler pprof. E.g.: https://github.com/mysteriumnetwork/node/issues/5311#issuecomment-1193172089 https://github.com/mysteriumnetwork/node/issues/5311#issueco...
- Jtsummers 4y agoNo. Goroutines don’t generate a reference to hold onto, either. They just run until they or the program terminate.
- deleted 4y ago[deleted]