queue

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MPL-2.0 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 interface {
	// Enqueue will add an item to the queue for processing. If the item being enqueued already exists then
	// it will be ignored.
	Enqueue(item interface{})
	// Dequeue will get an item from the queue. If there are no items on the queue then it will wait.
	Dequeue() (interface{}, bool)
	// Shutdown will cause the queue processing to shutdown.
	Shutdown()
}

Queue is the interface for a queue.

func NewSimpleSyncQueue

func NewSimpleSyncQueue() Queue

NewSimpleSyncQueue create a new simple sync queue.

Jump to

Keyboard shortcuts

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