func (q *Queue) Dump() []Item {
	q.mutex.Lock()
	defer q.mutex.Unlock()

	var copied = make([]Item, len(q.items))
	copy(copied, q.items)

	return copied
}
// Dump returns all the items in the queue.
Dump returns all the items in the queue.
// Dump returns all the items in the queue .
func (q *Queue) Dump() []Item {
	q.mutex.Lock()
	defer q.mutex.Unlock()
	var copied = make([]Item, len(q.items))
	copy(copied, q.items)
	return copied
}
func ( q * Queue ) Dump ( ) [ ] Item { q . mutex . Lock ( ) defer q . mutex . Unlock ( ) var copied = make ( [ ] Item , len ( q . items ) ) copy ( copied , q . items ) return copied }
Dump returns all the items in the queue.
Dump returns all the items in the queue .