You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
282 B
Bash
15 lines
282 B
Bash
5 years ago
|
$ go run waitgroups.go
|
||
|
Worker 5 starting
|
||
|
Worker 3 starting
|
||
|
Worker 4 starting
|
||
|
Worker 1 starting
|
||
|
Worker 2 starting
|
||
|
Worker 4 done
|
||
|
Worker 1 done
|
||
|
Worker 2 done
|
||
|
Worker 5 done
|
||
|
Worker 3 done
|
||
|
|
||
|
# The order of workers starting up and finishing
|
||
|
# is likely to be different for each invocation.
|