MCPcopy
hub / github.com/apache/devlake / Fetch

Method Fetch

backend/helpers/pluginhelper/api/iterator.go:158–165  ·  view source on GitHub ↗

Fetch current item

()

Source from the content-addressed store, hash-verified

156
157// Fetch current item
158func (q *QueueIterator) Fetch() (interface{}, errors.Error) {
159 node := q.queue.Pull()
160 if node == nil {
161 return nil, nil
162 } else {
163 return node.Data(), nil
164 }
165}
166
167// Push a data into queue
168func (q *QueueIterator) Push(data interface{}) {

Callers 1

TestQueueIteratorFunction · 0.95

Calls 2

PullMethod · 0.80
DataMethod · 0.65

Tested by 1

TestQueueIteratorFunction · 0.76