Hi,

Say you have a buffered channel
ch := make(chan int, 10)

Would it make sense and be easy to add the following directives to the Go 
language core?

waitempty(ch)
blocks caller until ch buffer is empty

waitfull(ch)
blocks caller until ch buffer is full

This means there are 3 types of goroutines related to a channel:
- senders
- receivers
- observers

There are nice possibilities with these, for example wait groups, resource 
usage alerts etc.

What do you think?

-- 
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 golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to