MCPcopy
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
97func (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

lenMethod · 0.95
finishMethod · 0.65

Tested by

no test coverage detected