Length returns the number of elements currently stored in the queue.
()
| 26 | |
| 27 | // Length returns the number of elements currently stored in the queue. |
| 28 | func (q *Queue) Length() int { |
| 29 | return q.count |
| 30 | } |
| 31 | |
| 32 | // resizes the queue to fit exactly twice its current contents |
| 33 | // this can result in shrinking if the queue is less than half-full |
no outgoing calls