Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PQueue ¶
type PQueue[T Item] struct { // contains filtered or unexported fields }
func New ¶
func New[T Item](opts ...PQueueOption[T]) *PQueue[T]
Defaults to a queue which prioritises a higher priority
type PQueueOption ¶
func WithCapacity ¶
func WithCapacity[T Item](capacity int) PQueueOption[T]
func WithItems ¶
func WithItems[T Item](items ...T) PQueueOption[T]
func WithPriority ¶
func WithPriority[T Item](priority PriorityType) PQueueOption[T]
Click to show internal directories.
Click to hide internal directories.