priority

package module
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Lowest
	Highest
)

Variables

This section is empty.

Functions

This section is empty.

Types

type PriorityQueue

type PriorityQueue struct {
	// contains filtered or unexported fields
}

func NewPriorityQueue

func NewPriorityQueue(numQueues int, ascendingPriority, blocking bool) *PriorityQueue

func (*PriorityQueue) Close

func (pq *PriorityQueue) Close()

func (*PriorityQueue) ReadChan

func (pq *PriorityQueue) ReadChan() <-chan interface{}

func (*PriorityQueue) ReadValue

func (pq *PriorityQueue) ReadValue() (interface{}, bool)

func (*PriorityQueue) Write

func (pq *PriorityQueue) Write(priority int) chan<- interface{}

func (*PriorityQueue) WriteValue

func (pq *PriorityQueue) WriteValue(priority int, msg interface{}) bool

Jump to

Keyboard shortcuts

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