3 ms·
Once main exits the program does as well, so all other goroutines will be terminated.
by kisielk 13y ago
Once main exits the program does as well, so all other goroutines will be terminated.
- simpleglider 13y agoTrue. Leaks don't matter for programs that exit immediately. I was pointing it out because it is often relevant when using the timeout pattern.