Curriculum Concurrency Channels exercise 4 · fill-word
Channels
Type the keyword that declares a channel TYPE. Like slice
uses []T and map uses map[K]V, channels use this
keyword followed by their element type.
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.