MCPcopy Index your code
hub / github.com/kubernetes/sample-controller / runWorker

Method runWorker

controller.go:193–196  ·  view source on GitHub ↗

runWorker is a long-running function that will continually call the processNextWorkItem function in order to read and process a message on the workqueue.

(ctx context.Context)

Source from the content-addressed store, hash-verified

191// processNextWorkItem function in order to read and process a message on the
192// workqueue.
193func (c *Controller) runWorker(ctx context.Context) {
194 for c.processNextWorkItem(ctx) {
195 }
196}
197
198// processNextWorkItem will read a single work item off the workqueue and
199// attempt to process it, by calling the syncHandler.

Callers

nothing calls this directly

Calls 1

processNextWorkItemMethod · 0.95

Tested by

no test coverage detected