I know I can check if a channel is full by trying to send it something like this:
select {
case ch <- "data":
// sent
default:
// channel full
}
However, is there a way to check if a channel is full without sending anything?