Curriculum Concurrency Channels exercise 2 · mcq
Channels
Pick the statement that best describes the difference between
an UNBUFFERED channel (make(chan int)) and a BUFFERED channel
with capacity 5 (make(chan int, 5)).
TypeScript reference
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.