18-checking-if-a-channel-is-closed

command
v0.0.0-...-9882766 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 26, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Example for checking if a channel is closed.

A channel actually carries two values. One for the value itself, and what if the channel is closed or not. When a channel is close it will return 0 for the value received, and false on OK, which is the second value to be received from a channel.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL