MCPcopy Index your code
hub / github.com/eapache/queue / Length

Method Length

queue.go:28–30  ·  view source on GitHub ↗

Length returns the number of elements currently stored in the queue.

()

Source from the content-addressed store, hash-verified

26
27// Length returns the number of elements currently stored in the queue.
28func (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

Callers 3

TestQueueLengthFunction · 0.80
TestQueueGetFunction · 0.80
TestQueueGetNegativeFunction · 0.80

Calls

no outgoing calls

Tested by 3

TestQueueLengthFunction · 0.64
TestQueueGetFunction · 0.64
TestQueueGetNegativeFunction · 0.64