parallel

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ordered

type Ordered struct {
	// contains filtered or unexported fields
}

func NewOrdered

func NewOrdered(
	acc cua.Accumulator,
	fn func(cua.Metric) []cua.Metric,
	orderedQueueSize int,
	workerCount int,
) *Ordered

func (*Ordered) Enqueue

func (p *Ordered) Enqueue(metric cua.Metric)

func (*Ordered) Stop

func (p *Ordered) Stop()

type Parallel

type Parallel interface {
	Enqueue(cua.Metric)
	Stop()
}

type Unordered

type Unordered struct {
	// contains filtered or unexported fields
}

func NewUnordered

func NewUnordered(
	acc cua.Accumulator,
	fn func(cua.Metric) []cua.Metric,
	workerCount int,
) *Unordered

func (*Unordered) Enqueue

func (p *Unordered) Enqueue(m cua.Metric)

func (*Unordered) Stop

func (p *Unordered) Stop()

Jump to

Keyboard shortcuts

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