Skip to content

Latest commit

 

History

History

waitgroup

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

WaitGroup

Go's sync package provides some primitives for synchronizing concurrency, including WaitGroup. This example shows how we use WaitGroup to synchronize across multiple concurrent goroutines.

Use WaitGroup to block execution of goroutine, including main.

Setup

  1. Run the program

    $ make run

Reference