gobyexample/examples/closing-channels/closing-channels.sh
asborisjuas 794330689b Add second return value to read example
Also revert too complicated paragraph
2023-11-30 10:43:42 +03:00

15 lines
280 B
Bash

$ 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
no jobs to receive 0
awaiting more jobs: false
# The idea of closed channels leads naturally to our next
# example: `range` over channels.