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

Method Finish

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

reduce working count

(count int64)

Source from the content-addressed store, hash-verified

40
41// reduce working count
42func (q *Queue) Finish(count int64) {
43 q.mux.Lock()
44 defer q.mux.Unlock()
45
46 q.working -= count
47}
48
49// Push add a node to queue
50func (q *Queue) Push(node QueueNode) {

Callers 1

TestQueueFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestQueueFunction · 0.76