Does Peek return the head or tail of the queue? The comment says
// Just attempts to return the tail element of the queue
func (q BlockingQueue) Peek() interface{} {
But typically peek would return the same thing as get/pop I believe; those both say they return the head element.
Does Peek return the head or tail of the queue? The comment says
But typically peek would return the same thing as get/pop I believe; those both say they return the head element.