queue

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConcurrentQueue

type ConcurrentQueue struct {
	Queue       chan T
	QueueSize   int
	Concurrency int
}

func New

func New(queueSize int, concurrency int) *ConcurrentQueue

func (*ConcurrentQueue) DispatchProcess

func (cq *ConcurrentQueue) DispatchProcess(process func(interface{}))

func (*ConcurrentQueue) Enqueue

func (cq *ConcurrentQueue) Enqueue(item T)

type T

type T interface{}

Jump to

Keyboard shortcuts

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