MCPcopy
hub / github.com/SurgeDM/Surge / Close

Method Close

internal/engine/concurrent/task_queue.go:76–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74}
75
76func (q *TaskQueue) Close() {
77 q.mu.Lock()
78 q.done = true
79 q.cond.Broadcast()
80 q.mu.Unlock()
81}
82
83func (q *TaskQueue) Len() int {
84 return int(q.size.Load())

Callers 15

TestTaskQueue_CloseFunction · 0.95
TestNetworkPool_ReuseFunction · 0.45
atomicWriteFunction · 0.45
loadGobFunction · 0.45
computeFileHashFunction · 0.45
TestMirrors_HappyPathFunction · 0.45
TestMirrors_FailoverFunction · 0.45

Calls

no outgoing calls