The scope of a channel

The scope of a channel is the code from which it can be accessed. These examples show the scope of each channel in the diagram.

The scope is important because it defines the lifetime of the channel and container storage. For more information, see Lifetime of channel and container storage.