Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumGosync.WaitGroupSingle-choice MCQ

What does this print, and why?

var wg sync.WaitGroup wg.Add(1) go func() { wg.Done() wg.Done() }() wg.Wait() fmt.Println("done")