MCPcopy Create free account
hub / github.com/chainreactors/spray / Close

Method Close

core/pool/checkpool.go:115–126  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

113 pool.Close()
114}
115func (pool *CheckPool) Close() {
116 pool.Cancel()
117 pool.waitWorkers()
118 close(pool.processCh)
119 <-pool.handlerDone
120 if pool.Bar != nil {
121 pool.Bar.Close()
122 }
123 if pool.Pool != nil {
124 pool.Pool.Release()
125 }
126}
127
128func (pool *CheckPool) waitWorkers() {
129 done := make(chan struct{})

Callers 1

RunMethod · 0.95

Calls 1

waitWorkersMethod · 0.95

Tested by

no test coverage detected