gobyexample/examples/closing-channels/closing-channels.sh
2022-01-03 17:12:13 +09:00

13 lines
233 B
Bash

$ go run closing-channels.go
sent job 1
sent job 2
sent job 3
sent all jobs
received job 1
received job 2
received job 3
received all jobs
# The idea of closed channels leads naturally to our next
# example: `range` over channels.