@@ -64,26 +64,33 @@ type TypedDelayingQueueConfig[T comparable] struct {
64
64
// NewDelayingQueue does not emit metrics. For use with a MetricsProvider, please use
65
65
// NewDelayingQueueWithConfig instead and specify a name.
66
66
//
67
- // Deprecated: use TypedNewDelayingQueue instead.
67
+ // Deprecated: use NewTypedDelayingQueue instead.
68
68
func NewDelayingQueue () DelayingInterface {
69
69
return NewDelayingQueueWithConfig (DelayingQueueConfig {})
70
70
}
71
71
72
- // TypedNewDelayingQueue constructs a new workqueue with delayed queuing ability.
73
- // TypedNewDelayingQueue does not emit metrics. For use with a MetricsProvider, please use
74
- // TypedNewDelayingQueueWithConfig instead and specify a name.
75
- func TypedNewDelayingQueue [T comparable ]() TypedDelayingInterface [T ] {
72
+ // NewTypedDelayingQueue constructs a new workqueue with delayed queuing ability.
73
+ // NewTypedDelayingQueue does not emit metrics. For use with a MetricsProvider, please use
74
+ // NewTypedDelayingQueueWithConfig instead and specify a name.
75
+ func NewTypedDelayingQueue [T comparable ]() TypedDelayingInterface [T ] {
76
76
return NewTypedDelayingQueueWithConfig (TypedDelayingQueueConfig [T ]{})
77
77
}
78
78
79
79
// NewDelayingQueueWithConfig constructs a new workqueue with options to
80
80
// customize different properties.
81
81
//
82
- // Deprecated: use TypedNewDelayingQueueWithConfig instead.
82
+ // Deprecated: use NewTypedDelayingQueueWithConfig instead.
83
83
func NewDelayingQueueWithConfig (config DelayingQueueConfig ) DelayingInterface {
84
84
return NewTypedDelayingQueueWithConfig [any ](config )
85
85
}
86
86
87
+ // TypedNewDelayingQueue exists for backwards compatibility only.
88
+ //
89
+ // Deprecated: use NewTypedDelayingQueueWithConfig instead.
90
+ func TypedNewDelayingQueue [T comparable ](config TypedDelayingQueueConfig [T ]) TypedDelayingInterface [T ] {
91
+ return NewTypedDelayingQueueWithConfig (config )
92
+ }
93
+
87
94
// NewTypedDelayingQueueWithConfig constructs a new workqueue with options to
88
95
// customize different properties.
89
96
func NewTypedDelayingQueueWithConfig [T comparable ](config TypedDelayingQueueConfig [T ]) TypedDelayingInterface [T ] {
0 commit comments