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

Function New

queue.go:21–25  ·  view source on GitHub ↗

New constructs and returns a new Queue.

()

Source from the content-addressed store, hash-verified

19
20// New constructs and returns a new Queue.
21func New() *Queue {
22 return &Queue{
23 buf: make([]interface{}, minQueueLen),
24 }
25}
26
27// Length returns the number of elements currently stored in the queue.
28func (q *Queue) Length() int {

Callers 11

TestQueueSimpleFunction · 0.85
TestQueueWrappingFunction · 0.85
TestQueueLengthFunction · 0.85
TestQueueGetFunction · 0.85
TestQueueGetNegativeFunction · 0.85
BenchmarkQueueSerialFunction · 0.85
BenchmarkQueueGetFunction · 0.85
BenchmarkQueueTickTockFunction · 0.85

Calls

no outgoing calls

Tested by 11

TestQueueSimpleFunction · 0.68
TestQueueWrappingFunction · 0.68
TestQueueLengthFunction · 0.68
TestQueueGetFunction · 0.68
TestQueueGetNegativeFunction · 0.68
BenchmarkQueueSerialFunction · 0.68
BenchmarkQueueGetFunction · 0.68
BenchmarkQueueTickTockFunction · 0.68