Curriculum Concurrency Channels
Channels
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.
9 ready
01
pick one Pick the line that creates a new UNBUFFERED channel of int.
02
pick onePick the statement that best describes the difference between
03
pick oneAfter you've finished sending on a channel, you can call
04
fill blanks Type the keyword that declares a channel TYPE. Like slice
05
fill blanksType the builtin that marks a channel as having no more
06
type one line Write the receive line that reads from ch and stores the
07
type one lineUse the comma-ok form of channel receive to detect that
08
write a programBuild a small program demonstrating the producer-consumer
09
write a programTheme 6.2 capstone — producer goroutine + consumer in main,