When we run the program the |
$ go run channels.go
ping
|
By default sends and receives block until both the
sender and receiver are ready. This property allowed
us to wait at the end of our program for the |
Previous example: Goroutines.
Next example: Channel Buffering.