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