Golang Concurrency #7 - WaitGroup
Introduction
WaitGroups solve the problem: "How do I wait for multiple goroutines to finish?"
The Problem
func main() {
go doWork("Job 1")
go doWork("Job 2")
go doWork("Job 3")
fmt.Println("All done!") // Prints immediately, jobs st...
tigerabrodi.blog2 min read