queue

package
v0.0.0-...-5812ae9 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2023 License: Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TimeQueue

type TimeQueue interface {
	Add(t time.Time, ch chan<- time.Time) func() bool
	PopBeforeOrEqual(t time.Time) []chan<- time.Time
	Peek() (time.Time, bool)
	Len() int
}

TimeQueue is a priority queue of channels order by their trigger time. Not concurrent safe.

func NewTimeQueue

func NewTimeQueue() TimeQueue

NewTimeQueue returns a new Timer

Jump to

Keyboard shortcuts

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