Examples using... sync.WaitGroup

Recent
This example fetches several URLs concurrently, using a WaitGroup to block until all the fetches are complete.
This example shows how to use the producer with separate goroutines reading from the Successes and Errors channels. Note that in order for the Successes channel to be populated, you have to set config.Producer.Return.Successes to true.
To wait for multiple goroutines to finish, we can use a wait group.