executors

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 11, 2022 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 Executor

type Executor interface {
	Add(job Job)
	Run() error
}

func NewParallel

func NewParallel() Executor

func NewSequential

func NewSequential() Executor

type Job

type Job func() error

type Parallel

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

func (*Parallel) Add

func (exe *Parallel) Add(job Job)

func (*Parallel) Run

func (exe *Parallel) Run() error

type Sequential

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

func (*Sequential) Add

func (exe *Sequential) Add(job Job)

func (*Sequential) Run

func (exe *Sequential) Run() error

Jump to

Keyboard shortcuts

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