Curriculum Concurrency Channels exercise 5 · fill-word
Channels
Type the builtin that marks a channel as having no more
sends. After this call, send-on-channel panics, but
receivers can still drain any buffered values and then
observe false on the comma-ok form.
TypeScript reference
Fill the blanks →
About this theme
Channels are typed pipes between goroutines. ch <- v sends, v := <-ch receives. Unbuffered channels are a synchronisation primitive: send blocks until receive completes. Buffered channels decouple the two. Channel direction (<-chan T, chan<- T) is part of the type signature.