MCPcopy Index your code
hub / github.com/docker/docker-agent / refreshLoop

Method refreshLoop

pkg/server/source_loader.go:76–88  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

74}
75
76func (sl *sourceLoader) refreshLoop(ctx context.Context) {
77 ticker := time.NewTicker(sl.refreshInterval)
78 defer ticker.Stop()
79
80 for {
81 select {
82 case <-ctx.Done():
83 return
84 case <-ticker.C:
85 sl.load(ctx)
86 }
87 }
88}

Callers 1

newSourceLoaderFunction · 0.95

Calls 2

loadMethod · 0.95
StopMethod · 0.65

Tested by

no test coverage detected