queue

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

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

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 5 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 NewQueue

func NewQueue(name string) Queue

func (*Queue) Enqueue

func (q *Queue) Enqueue(obj interface{})

func (*Queue) ProcessNextItem

func (q *Queue) ProcessNextItem(sync syncFunc) bool

ProcessNextItem will read a single item from the workqueue and attempt to process it, by calling sync function.

func (*Queue) ShutDown

func (q *Queue) ShutDown()

Jump to

Keyboard shortcuts

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