mirror of
https://github.com/kubernetes/client-go.git
synced 2025-06-26 15:12:06 +00:00
Rename TypedNewDelayingQueue to NewTypedDelayingQueue
This change renames NewTypedDelayingQueue to NewTypedDelayingQueue to stay consistent with the naming scheme in the package. A NewTypedDelayingQueue constructor is kept for backwards compatibility but marked as deprecated. Kubernetes-commit: 45da5dc30ecf0ba4c4b44befd96b8617278c496b
This commit is contained in:
parent
388eba62e1
commit
c311da2251
@ -64,26 +64,33 @@ type TypedDelayingQueueConfig[T comparable] struct {
|
||||
// NewDelayingQueue does not emit metrics. For use with a MetricsProvider, please use
|
||||
// NewDelayingQueueWithConfig instead and specify a name.
|
||||
//
|
||||
// Deprecated: use TypedNewDelayingQueue instead.
|
||||
// Deprecated: use NewTypedDelayingQueue instead.
|
||||
func NewDelayingQueue() DelayingInterface {
|
||||
return NewDelayingQueueWithConfig(DelayingQueueConfig{})
|
||||
}
|
||||
|
||||
// TypedNewDelayingQueue constructs a new workqueue with delayed queuing ability.
|
||||
// TypedNewDelayingQueue does not emit metrics. For use with a MetricsProvider, please use
|
||||
// TypedNewDelayingQueueWithConfig instead and specify a name.
|
||||
func TypedNewDelayingQueue[T comparable]() TypedDelayingInterface[T] {
|
||||
// NewTypedDelayingQueue constructs a new workqueue with delayed queuing ability.
|
||||
// NewTypedDelayingQueue does not emit metrics. For use with a MetricsProvider, please use
|
||||
// NewTypedDelayingQueueWithConfig instead and specify a name.
|
||||
func NewTypedDelayingQueue[T comparable]() TypedDelayingInterface[T] {
|
||||
return NewTypedDelayingQueueWithConfig(TypedDelayingQueueConfig[T]{})
|
||||
}
|
||||
|
||||
// NewDelayingQueueWithConfig constructs a new workqueue with options to
|
||||
// customize different properties.
|
||||
//
|
||||
// Deprecated: use TypedNewDelayingQueueWithConfig instead.
|
||||
// Deprecated: use NewTypedDelayingQueueWithConfig instead.
|
||||
func NewDelayingQueueWithConfig(config DelayingQueueConfig) DelayingInterface {
|
||||
return NewTypedDelayingQueueWithConfig[any](config)
|
||||
}
|
||||
|
||||
// TypedNewDelayingQueue exists for backwards compatibility only.
|
||||
//
|
||||
// Deprecated: use NewTypedDelayingQueueWithConfig instead.
|
||||
func TypedNewDelayingQueue[T comparable](config TypedDelayingQueueConfig[T]) TypedDelayingInterface[T] {
|
||||
return NewTypedDelayingQueueWithConfig(config)
|
||||
}
|
||||
|
||||
// NewTypedDelayingQueueWithConfig constructs a new workqueue with options to
|
||||
// customize different properties.
|
||||
func NewTypedDelayingQueueWithConfig[T comparable](config TypedDelayingQueueConfig[T]) TypedDelayingInterface[T] {
|
||||
|
Loading…
Reference in New Issue
Block a user