Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/panjf2000/ants
/ insert
Method
insert
worker_queue.go:45–45 ·
view source on GitHub ↗
(worker)
Source
from the content-addressed store, hash-verified
43
len() int
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()
Callers
6
TestWorkerStack
Function · 0.65
TestSearch
Function · 0.65
TestLoopQueue
Function · 0.65
TestRotatedQueueSearch
Function · 0.65
TestRetrieveExpiry
Function · 0.65
revertWorker
Method · 0.65
Implementers
2
loopQueue
worker_loop_queue.go
workerStack
worker_stack.go
Calls
no outgoing calls
Tested by
5
TestWorkerStack
Function · 0.52
TestSearch
Function · 0.52
TestLoopQueue
Function · 0.52
TestRotatedQueueSearch
Function · 0.52
TestRetrieveExpiry
Function · 0.52