fqueue

package
v0.2.0-beta.202401072120 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: AGPL-3.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 FunctionCall

type FunctionCall func() error

type FunctionQueue

type FunctionQueue struct {
	Name             string
	CallbackChannels []chan error
	DropCount        int
	// contains filtered or unexported fields
}

func NewFunctionQueue

func NewFunctionQueue(name string) *FunctionQueue

func NewFunctionQueueWithSize

func NewFunctionQueueWithSize(name string, size int) *FunctionQueue

func (*FunctionQueue) Enqueue

func (fq *FunctionQueue) Enqueue(fn FunctionCall)

func (*FunctionQueue) Execute

func (fq *FunctionQueue) Execute()

func (*FunctionQueue) RegisterCallback

func (fq *FunctionQueue) RegisterCallback(callback chan error)

Jump to

Keyboard shortcuts

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