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

Function newWorkerStack

worker_stack.go:32–36  ·  view source on GitHub ↗
(size int)

Source from the content-addressed store, hash-verified

30}
31
32func newWorkerStack(size int) *workerStack {
33 return &workerStack{
34 items: make([]worker, 0, size),
35 }
36}
37
38func (ws *workerStack) len() int {
39 return len(ws.items)

Callers 3

TestNewWorkerStackFunction · 0.85
TestSearchFunction · 0.85
newWorkerQueueFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestNewWorkerStackFunction · 0.68
TestSearchFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…