Closing Go Channels
Let’s learn how to close the Go channels.
We'll cover the following...
So far, we have seen basic usages of channels—this lesson presents the definition and the usage of nil
channels, signal channels, and buffered channels.
Closing a channel
It helps to remember that the zero value of the channel type is nil
, and that if we ...