xsort

package
v4.20.7 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2023 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrioritySort

type PrioritySort[T any] struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewPriority

func NewPriority[T any]() *PrioritySort[T]

func (*PrioritySort[T]) Add

func (m *PrioritySort[T]) Add(priority int, t T)

func (*PrioritySort[T]) Sort

func (m *PrioritySort[T]) Sort() []T

Jump to

Keyboard shortcuts

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