Prevent the main() function from terminating before goroutines finish in Golang Luke Chaffey 8 months ago Prevent the main() function from terminating before goroutines finish in Golang go: Prevent the main() function from terminating before goroutines finish in Golang Thanks for taking the time to learn more.