package queue
import "k8s.io/kubernetes/pkg/scheduler/util/queue"
Index ¶
Types ¶
type FIFO ¶
type FIFO[T any] struct { // contains filtered or unexported fields }
FIFO implements a first-in-first-out queue with unbounded size. The null FIFO is a valid empty queue.
Access must be protected by the caller when used concurrently by different goroutines, the queue itself implements no locking.
func (*FIFO[T]) Len ¶
func (*FIFO[T]) Pop ¶
func (*FIFO[T]) Push ¶
func (q *FIFO[T]) Push(element T)
Source Files ¶
fifo.go
Tools for package owners.