3 ms·
I have a question about the design of the garbage collector of Go. Does it also clean up goroutines that are waiting on a "forgotten" channel? And does this app
by amelius 11y ago
I have a question about the design of the garbage collector of Go. Does it also clean up goroutines that are waiting on a "forgotten" channel? And does this apply for processes waiting for each other in a cycle?
- dsymonds 11y agoNo, goroutines are never cleaned up until they exit. If they are blocked on a channel that no-one else references then they'll be blocked forever.