parallel

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(tasks []funcs.FuncWithErr) error

Types

type Option added in v0.0.45

type Option func(p *Parallel)

type Parallel

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

func New

func New(workNum uint, opts ...Option) *Parallel

func (*Parallel) AddTask

func (p *Parallel) AddTask(task funcs.FuncContinue)

func (*Parallel) Run

func (p *Parallel) Run()

func (*Parallel) Stop added in v0.0.45

func (p *Parallel) Stop()

func (*Parallel) Wait

func (p *Parallel) Wait()

Jump to

Keyboard shortcuts

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