func (q *UniqueQueue) Head() (TimedValue, bool) {
	q.lock.Lock()
	defer q.lock.Unlock()
	if len(q.queue) == 0 {
		return TimedValue{}, false
	}
	result := q.queue[0]
	return *result, true
}
// Head returns the oldest added value that wasn't returned yet
// without removing it.
Head returns the oldest added value that wasn't returned yet
without removing it.
// Head returns the oldest added value that wasn ' t returned yet // without removing it .
func (q *UniqueQueue) Head() (TimedValue, bool) {
	q.lock.Lock()
	defer q.lock.Unlock()
	if len(q.queue) == 0 {
		return TimedValue{}, false
	}
	result := q.queue[0]
	return *result, true
}
func ( q * UniqueQueue ) Head ( ) ( TimedValue , bool ) { q . lock . Lock ( ) defer q . lock . Unlock ( ) if len ( q . queue ) == 0 { return TimedValue { } , false } result := q . queue [ 0 ] return * result , true }
Head returns the oldest added value that wasn't returned yet
without removing it.
Head returns the oldest added value that wasn ' t returned yet without removing it .