priorityqueue

package
v0.0.0-...-3a970f8 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

See https://pkg.go.dev/container/heap

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job interface {
	Process()
}

type Worker

type Worker interface {
	Start()
	Push(job Job)
	Shutdown()
	Consume()
}

func NewWorker

func NewWorker(workers, jobs int, delay time.Duration) Worker

Directories

Path Synopsis
This example demonstrates a priority queue built using the heap interface.
This example demonstrates a priority queue built using the heap interface.
This example demonstrates an integer heap built using the heap interface.
This example demonstrates an integer heap built using the heap interface.

Jump to

Keyboard shortcuts

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