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

Function newEventProcessor

tools/watch/informerwatcher.go:27–33  ·  view source on GitHub ↗
(out chan<- watch.Event)

Source from the content-addressed store, hash-verified

25)
26
27func newEventProcessor(out chan<- watch.Event) *eventProcessor {
28 return &eventProcessor{
29 out: out,
30 cond: sync.NewCond(&sync.Mutex{}),
31 done: make(chan struct{}),
32 }
33}
34
35// eventProcessor buffers events and writes them to an out chan when a reader
36// is waiting. Because of the requirement to buffer events, it synchronizes

Callers 3

TestEventProcessorExitFunction · 0.85

Calls

no outgoing calls

Tested by 2

TestEventProcessorExitFunction · 0.68