taskheap

package
v0.0.0-...-9c90d3e Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: Apache-2.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 Heap

type Heap []*core.TaskHeapItem

Heap is a heap of tasks

func (Heap) Len

func (h Heap) Len() int

Len returns the length of the heap

func (Heap) Less

func (h Heap) Less(i, j int) bool

func (*Heap) Pop

func (h *Heap) Pop() interface{}

Pop removes the top task from the heap

func (*Heap) Push

func (h *Heap) Push(x interface{})

Push adds a new task to the heap

func (Heap) Swap

func (h Heap) Swap(i, j int)

Swap swaps the values of two tasks

func (*Heap) UpdateHead

func (h *Heap) UpdateHead(testDuration int, testLocator string)

UpdateHead updates the head task in the heap.

Jump to

Keyboard shortcuts

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