3 ms·
> you can never use range over a channel in production code. You must always do any select on a channel alongside a shutdown (bailout) channel, so there will al
by jfauwasdf 1y ago
> you can never use range over a channel in production code. You must always do any select on a channel alongside a shutdown (bailout) channel, so there will always be at least two channels being select-ed on.
What if you spawned a new goroutine that waits for a waitgroup to complete and then closes the channel?