Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
32
func
newWorkerStack(size int) *workerStack {
33
return
&workerStack{
34
items: make([]worker, 0, size),
35
}
36
}
37
38
func
(ws *workerStack) len() int {
39
return
len(ws.items)
Callers
3
TestNewWorkerStack
Function · 0.85
TestSearch
Function · 0.85
newWorkerQueue
Function · 0.85
Calls
no outgoing calls
Tested by
2
TestNewWorkerStack
Function · 0.68
TestSearch
Function · 0.68
Used in the wild
real call sites across dependent graphs
searching dependent graphs…