parallel

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 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)

func RetryTimes added in v0.0.45

func RetryTimes(retryTimes int) Option

type Parallel

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

func New

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

func (*Parallel) AddTask

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

func (*Parallel) RetryTimes added in v0.0.45

func (p *Parallel) RetryTimes(retryTimes int) *Parallel

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