Glossary: Go Beyond the Basics
close
Also written: close(ch)
A built-in that marks a channel as finished. Receivers still get any values left, then stop. Only the sender should close a channel, since sending on a closed one panics.
Glossary: Go Beyond the Basics
Also written: close(ch)
A built-in that marks a channel as finished. Receivers still get any values left, then stop. Only the sender should close a channel, since sending on a closed one panics.