MCPcopy
hub / github.com/kubernetes/client-go / run

Method run

tools/watch/informerwatcher.go:49–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

47}
48
49func (e *eventProcessor) run() {
50 for {
51 batch := e.takeBatch()
52 e.writeBatch(batch)
53 if e.stopped() {
54 return
55 }
56 }
57}
58
59func (e *eventProcessor) takeBatch() []watch.Event {
60 e.cond.L.Lock()

Callers 3

TestEventProcessorExitFunction · 0.45

Calls 3

takeBatchMethod · 0.95
writeBatchMethod · 0.95
stoppedMethod · 0.95

Tested by 2

TestEventProcessorExitFunction · 0.36