Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/panjf2000/ants
/ detach
Method
detach
worker_queue.go:46–46 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
44
isEmpty() bool
45
insert(worker) error
46
detach() worker
47
refresh(duration time.Duration) []worker
// clean up the stale workers and return them
48
reset()
49
}
Callers
6
TestNewWorkerStack
Function · 0.65
TestNewLoopQueue
Function · 0.65
TestLoopQueue
Function · 0.65
TestRotatedQueueSearch
Function · 0.65
TestRetrieveExpiry
Function · 0.65
retrieveWorker
Method · 0.65
Implementers
2
loopQueue
worker_loop_queue.go
workerStack
worker_stack.go
Calls
no outgoing calls
Tested by
5
TestNewWorkerStack
Function · 0.52
TestNewLoopQueue
Function · 0.52
TestLoopQueue
Function · 0.52
TestRotatedQueueSearch
Function · 0.52
TestRetrieveExpiry
Function · 0.52