package
Version:
v0.0.0-...-9c90d3e
Opens a new window with list of versions in this module.
Published: Sep 24, 2022
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Heap is a heap of tasks
Len returns the length of the heap
func (h *Heap) Pop() interface{}
Pop removes the top task from the heap
func (h *Heap) Push(x interface{})
Push adds a new task to the heap
Swap swaps the values of two tasks
UpdateHead updates the head task in the heap.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.