MCPcopy Index your code
hub / github.com/PatchMon/PatchMon / Close

Method Close

server-source-code/internal/context/registry.go:82–89  ·  view source on GitHub ↗

Close stops the poller and closes the pool.

()

Source from the content-addressed store, hash-verified

80
81// Close stops the poller and closes the pool.
82func (r *Registry) Close() {
83 if r == nil {
84 return
85 }
86 close(r.stop)
87 <-r.stopped
88 r.pool.Close()
89}
90
91func (r *Registry) poll() {
92 defer close(r.stopped)

Callers 5

mainFunction · 0.95
GetOrCreateMethod · 0.45
EvictMethod · 0.45
NewRegistryFunction · 0.45
refreshMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected