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

Function NewNamed

util/workqueue/queue.go:40–47  ·  view source on GitHub ↗
(name string)

Source from the content-addressed store, hash-verified

38}
39
40func NewNamed(name string) *Type {
41 rc := clock.RealClock{}
42 return newQueue(
43 rc,
44 globalMetricsFactory.newQueueMetrics(name, rc),
45 defaultUnfinishedWorkUpdatePeriod,
46 )
47}
48
49func newQueue(c clock.Clock, metrics queueMetrics, updatePeriod time.Duration) *Type {
50 t := &Type{

Callers 2

newDelayingQueueFunction · 0.85
NewFunction · 0.85

Calls 2

newQueueFunction · 0.85
newQueueMetricsMethod · 0.80

Tested by

no test coverage detected