mapqueue

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MQEntry

type MQEntry struct {
	Lock    *sync.Mutex
	Running bool
	Queue   chan func()
}

type MapQueue

type MapQueue struct {
	Lock      *sync.Mutex
	M         map[string]*MQEntry
	QueueSize int
}

func MakeMapQueue

func MakeMapQueue(queueSize int) *MapQueue

func (*MapQueue) Enqueue

func (mq *MapQueue) Enqueue(id string, fn func()) error

Jump to

Keyboard shortcuts

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