@@ -18,8 +18,7 @@ func main() {
|
||||
// This `range` iterates over each element as it's
|
||||
// received from `queue`. Because we `close`d the
|
||||
// channel above, the iteration terminates after
|
||||
// receiving the 2 elements. If we didn't `close` it
|
||||
// we'd block on a 3rd receive in the loop.
|
||||
// receiving the 2 elements.
|
||||
for elem := range queue {
|
||||
fmt.Println(elem)
|
||||
}
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
e415b1f2ae531b319bb9aca69b17e7b916511744
|
||||
WN7NNh9tvh
|
||||
8b5d8a77e84c34771c5b14af014ecef3f88b2a6c
|
||||
I63ge2ISDs
|
||||
|
||||
Reference in New Issue
Block a user