|| at Mar 27, 2015 at 5:22 am
you could, if you're on the receiving end of a channel, just query its
length. that will give the number of elements queued on it:http://play.golang.org/p/TZ_PphtE8J
if reasonably close to capacity, as a consumer you can assume that
it's being overrun.
the main observation here is that channels tend to be in one of two
states: empty or full. it is rare that a channel is consistently
half-full for example. such is the bursty nature of today's
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to email@example.com.
For more options, visit https://groups.google.com/d/optout.