Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/panjf2000/ants
/ reset
Method
reset
worker_stack.go:97–103 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
95
}
96
97
func
(ws *workerStack) reset() {
98
for
i := 0; i < ws.len(); i++ {
99
ws.items[i].finish()
100
ws.items[i] = nil
101
}
102
ws.items = ws.items[:0]
103
}
Callers
nothing calls this directly
Calls
2
len
Method · 0.95
finish
Method · 0.65
Tested by
no test coverage detected