MCPcopy
hub / github.com/panjf2000/ants / isEmpty

Method isEmpty

worker_queue.go:44–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42type workerQueue interface {
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

Callers 2

TestNewWorkerStackFunction · 0.65
TestNewLoopQueueFunction · 0.65

Implementers 2

loopQueueworker_loop_queue.go
workerStackworker_stack.go

Calls

no outgoing calls

Tested by 2

TestNewWorkerStackFunction · 0.52
TestNewLoopQueueFunction · 0.52