Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
76
func
(q *TaskQueue) Close() {
77
q.mu.Lock()
78
q.done = true
79
q.cond.Broadcast()
80
q.mu.Unlock()
81
}
82
83
func
(q *TaskQueue) Len() int {
84
return
int(q.size.Load())
Callers
15
TestTaskQueue_Close
Function · 0.95
TestHedgeSharedMaxOffsetRace
Function · 0.95
TestNetworkPool_Reuse
Function · 0.45
atomicWrite
Function · 0.45
loadGob
Function · 0.45
computeFileHashMD5WithTimeout
Function · 0.45
computeFileHash
Function · 0.45
TestMirrors_HappyPath
Function · 0.45
TestMirrors_Failover
Function · 0.45
TestConcurrentDownloader_CustomHeaders
Function · 0.45
TestConcurrentDownloader_DefaultUserAgent
Function · 0.45
TestConcurrentDownloader_RangeHeaderNotOverridden
Function · 0.45
Calls
no outgoing calls
Tested by
15
TestTaskQueue_Close
Function · 0.76
TestHedgeSharedMaxOffsetRace
Function · 0.76
TestNetworkPool_Reuse
Function · 0.36
TestMirrors_HappyPath
Function · 0.36
TestMirrors_Failover
Function · 0.36
TestConcurrentDownloader_CustomHeaders
Function · 0.36
TestConcurrentDownloader_DefaultUserAgent
Function · 0.36
TestConcurrentDownloader_RangeHeaderNotOverridden
Function · 0.36
TestConcurrentDownloader_HeadersForwardedOnRedirect
Function · 0.36
TestConcurrentDownloader_SwitchOn429
Function · 0.36
TestConcurrentDownloader_BackoffOnSingleMirror
Function · 0.36
TestConcurrentDownloader_PrewarmConnections
Function · 0.36