MCPcopy Index your code
hub / github.com/apache/devlake / NewQueue

Function NewQueue

backend/helpers/pluginhelper/api/queue.go:173–180  ·  view source on GitHub ↗

NewQueue create and init a new Queue

()

Source from the content-addressed store, hash-verified

171
172// NewQueue create and init a new Queue
173func NewQueue() *Queue {
174 return &Queue{
175 count: int64(0),
176 head: nil,
177 tail: nil,
178 mux: sync.Mutex{},
179 }
180}
181
182// QueueIteratorNode implements the api.Iterator interface with ability to accept new item when being iterated
183type QueueIteratorNode struct {

Callers 2

TestQueueFunction · 0.85
NewQueueIteratorFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestQueueFunction · 0.68