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.
13 lines
233 B
Bash
13 lines
233 B
Bash
5 years ago
|
$ go run closing-channels.go
|
||
|
sent job 1
|
||
|
received job 1
|
||
|
sent job 2
|
||
|
received job 2
|
||
|
sent job 3
|
||
|
received job 3
|
||
|
sent all jobs
|
||
|
received all jobs
|
||
|
|
||
|
# The idea of closed channels leads naturally to our next
|
||
|
# example: `range` over channels.
|