MCPcopy Create free account
hub / github.com/cloudbase/garm / loop

Method loop

database/watcher/watcher.go:192–204  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

190}
191
192func (w *watcher) loop() {
193 defer func() {
194 w.Close()
195 }()
196 for {
197 select {
198 case <-w.quit:
199 return
200 case <-w.ctx.Done():
201 return
202 }
203 }
204}

Callers 1

InitWatcherFunction · 0.95

Calls 2

CloseMethod · 0.95
DoneMethod · 0.45

Tested by

no test coverage detected