I am happily using co-routines and channels. No problem so far.
Now we need to tune the performance of our flow which is a chain of channels and senders/receivers.
In order to play with the number of workers we have to known which channel is full (to allocate more workers and improve performance).
Unfortunately, there is no way to detect how many messages are in a channel (to detect which one is full and that causes the delay because of the backpressure).
Is there a way to see whether a channel is full or empty ?