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

Method Close

pool.go:359–367  ·  view source on GitHub ↗

Close immediately changes the pool's state so no new connections will be created, then gets and closes the existing ones as they become available.

()

Source from the content-addressed store, hash-verified

357// Close immediately changes the pool's state so no new connections will be
358// created, then gets and closes the existing ones as they become available.
359func (p *Pool) Close() {
360 close(p.closing)
361
362 for p.created > 0 {
363 c := <-p.clients
364 c.Quit()
365 p.dec()
366 }
367}

Callers 9

CloseMethod · 0.45
maybeReplaceMethod · 0.45
SendMethod · 0.45
AttachFileMethod · 0.45
writeMessageFunction · 0.45
BytesMethod · 0.45
SendWithTLSMethod · 0.45
SendWithStartTLSMethod · 0.45
Test_quotedPrintEncodeFunction · 0.45

Calls 1

decMethod · 0.95

Tested by 1

Test_quotedPrintEncodeFunction · 0.36