MCPcopy 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

TestWorkerStackFunction · 0.65
TestLoopQueueFunction · 0.65
TestRetrieveExpiryFunction · 0.65
purgeStaleWorkersMethod · 0.65

Implementers 2

loopQueueworker_loop_queue.go
workerStackworker_stack.go

Calls

no outgoing calls

Tested by 3

TestWorkerStackFunction · 0.52
TestLoopQueueFunction · 0.52
TestRetrieveExpiryFunction · 0.52