MCPcopy
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

TestNewWorkerStackFunction · 0.65
TestNewLoopQueueFunction · 0.65
TestLoopQueueFunction · 0.65
TestRotatedQueueSearchFunction · 0.65
TestRetrieveExpiryFunction · 0.65
retrieveWorkerMethod · 0.65

Implementers 2

loopQueueworker_loop_queue.go
workerStackworker_stack.go

Calls

no outgoing calls

Tested by 5

TestNewWorkerStackFunction · 0.52
TestNewLoopQueueFunction · 0.52
TestLoopQueueFunction · 0.52
TestRotatedQueueSearchFunction · 0.52
TestRetrieveExpiryFunction · 0.52