2 ms·
Range over a channel only terminates when the channel is closed, which that example doesn't do. Since the channel is created as buffered, you could do a normal
by sagichmal 12y ago
Range over a channel only terminates when the channel is closed, which that example doesn't do.
Since the channel is created as buffered, you could do a normal for-loop over cap(chan), which would be the same as len(providers).