MCPcopy
hub / github.com/jordan-wright/email / inc

Method inc

pool.go:144–157  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

142}
143
144func (p *Pool) inc() bool {
145 if p.created >= p.max {
146 return false
147 }
148
149 p.mut.Lock()
150 defer p.mut.Unlock()
151
152 if p.created >= p.max {
153 return false
154 }
155 p.created++
156 return true
157}
158
159func (p *Pool) dec() {
160 p.mut.Lock()

Callers 1

makeOneMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected