Curriculum Concurrency Select
Select
select waits on multiple channel operations and runs the case for whichever is ready first. With a default branch it becomes non-blocking. Paired with time.After(d) it becomes a timeout. This is the closest thing Go has to a "wait on a set of futures" primitive.
9 ready
01
pick one select is Go's primitive for waiting on multiple channel
02
pick one Pick the statement that's TRUE about select semantics.
03
pick one Adding a default case to a select block changes its
04
fill blanksType the keyword that opens a multi-channel wait block.
05
fill blanks Type the keyword used inside a select block to mark the
06
type one line Write the select block that waits on TWO channels — c1
07
type one line Non-blocking poll. Write the default line that prints
08
write a program Build a small program with the select + time.After
09
write a programTheme 6.3 capstone — fan-in pattern: two producer goroutines