Curriculum Concurrency Channels exercise 1 · mcq
Channels
Pick the line that creates a new UNBUFFERED channel of int.
TypeScript doesn't have channels natively — closest analog
is an EventEmitter or a stream. Go's channels are first-class
language primitives with typed payload.
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.