MCPcopy
hub / github.com/cilium/cilium / Run

Method Run

pkg/eventqueue/eventqueue.go:222–228  ·  view source on GitHub ↗

Run consumes events that have been queued for this EventQueue. It is presumed that the eventQueue is a buffered channel with a length of one (i.e., only one event can be processed at a time). All business logic for handling queued events is contained within this function. The events in the queue mus

()

Source from the content-addressed store, hash-verified

220// cancelled; any event which is currently being processed will not be
221// cancelled.
222func (q *EventQueue) Run() {
223 if q.notSafeToAccess() {
224 return
225 }
226
227 go q.run()
228}
229
230func (q *EventQueue) run() {
231 q.eventQueueOnce.Do(func() {

Callers 4

TestDrainedFunction · 0.95
TestDrainFunction · 0.95
TestEnqueueTwiceFunction · 0.95

Calls 2

notSafeToAccessMethod · 0.95
runMethod · 0.95

Tested by 4

TestDrainedFunction · 0.76
TestDrainFunction · 0.76
TestEnqueueTwiceFunction · 0.76