Y
Hacker News
new
|
ask
|
show
|
jobs
by
kisielk
4728 days ago
Once main exits the program does as well, so all other goroutines will be terminated.
1 comments
simpleglider
4728 days ago
True. Leaks don't matter for programs that exit immediately. I was pointing it out because it is often relevant when using the timeout pattern.
link