queue

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Queue

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

func New

func New() Queue

func (Queue) Front

func (q Queue) Front() (ksuid.KSUID, func())

func (Queue) Has

func (q Queue) Has(id ksuid.KSUID) bool

func (Queue) Len

func (q Queue) Len() int

func (Queue) Remove

func (q Queue) Remove(id ksuid.KSUID) (removed bool)

func (Queue) Scan

func (q Queue) Scan(
	after ksuid.KSUID,
	fn func(ksuid.KSUID, func()) bool,
) (afterFound bool)

func (Queue) Set

func (q Queue) Set(id ksuid.KSUID, fn func()) (setAtFront bool)

Jump to

Keyboard shortcuts

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