executor

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor interface {
	Submit(t Task)
	Execute() error
	IsFinished() bool
}

func NewParallel

func NewParallel(concurrencyLimit int64, continueOnError bool) Executor

type Parallel

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

func (*Parallel) Execute

func (e *Parallel) Execute() error

func (*Parallel) IsFinished

func (e *Parallel) IsFinished() bool

func (*Parallel) Submit

func (e *Parallel) Submit(t Task)

type Task

type Task interface {
	Run() error
	GetName() string
}

Jump to

Keyboard shortcuts

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