kubernetesk8s.io/kubernetes/pkg/scheduler/util/queue Index | Files

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 (q *FIFO[T]) Len() int

func (*FIFO[T]) Pop

func (q *FIFO[T]) Pop() (element T, ok bool)

func (*FIFO[T]) Push

func (q *FIFO[T]) Push(element T)

Source Files

fifo.go

Version
v1.33.0 (latest)
Published
Apr 23, 2025
Platform
linux/amd64
Last checked
3 hours ago

Tools for package owners.