parallel

package
v0.0.0-...-8f5c30e Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Batch

type Batch struct {
	Start, End, ID int
}

type Batches

type Batches struct {
	Batches    []Batch
	Iterations int
	BatchSize  int
}

func NewBatches

func NewBatches(size, batch int) Batches

func (Batches) AsChannel

func (b Batches) AsChannel() <-chan Batch

func (Batches) Run

func (b Batches) Run(threads int, iteration Iterator) timer.Result

type Iterator

type Iterator func(thread int, batch Batch) error

Jump to

Keyboard shortcuts

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