queue

package
v0.17.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry[T any] struct {
	// contains filtered or unexported fields
}

func NewEntry

func NewEntry[T any](v *T) *Entry[T]

func (*Entry[T]) Value

func (entry *Entry[T]) Value() *T

type Queue

type Queue[T any] interface {
	Pop() *Entry[T]
	Push(entry *Entry[T])
	Empty() bool
}

func NewQueue

func NewQueue[T any](vs ...*T) Queue[T]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL