Beginner
Go (Golang)
Q34 / 100
What is the for range idiom for channels?
Correct! Well done.
Incorrect.
The correct answer is B) Receives from a channel until it is closed
B
Correct Answer
Receives from a channel until it is closed
Explanation
for v := range ch { } reads from ch until close(ch) is called. Without close, the loop blocks forever.
Progress
34/100