workqueue

package
v0.0.0-...-dfc2b99 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: ISC Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultBacklog = 10
View Source
const DefaultWorkerCount = 6

Variables

This section is empty.

Functions

This section is empty.

Types

type WorkQueue

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

func New

func New(workerCount,
	maxResults int,
	rangeMin uint64,
	rangeMax uint64,
	job func(key uint64) er.R,
) *WorkQueue

func (*WorkQueue) Get

func (ff *WorkQueue) Get(
	num uint64,
) er.R

Jump to

Keyboard shortcuts

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