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