parallel

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunByContext added in v0.3.0

func RunByContext(ctx context.Context, runner ...func(ctx context.Context))

func RunParallel added in v0.2.0

func RunParallel(ctx context.Context, runner ...func(ctx context.Context))

Types

type Port added in v0.1.5

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

type Root added in v0.1.5

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

func NewRoot added in v0.1.5

func NewRoot() *Root

func (*Root) Close added in v0.1.5

func (root *Root) Close()

func (*Root) Closed added in v0.1.5

func (root *Root) Closed() <-chan struct{}

func (*Root) Fork added in v0.1.5

func (root *Root) Fork(runner func(ctx context.Context) bool) *Runner

func (*Root) Runner added in v0.1.5

func (root *Root) Runner() *Runner

func (*Root) Start added in v0.1.5

func (root *Root) Start()

type RunInfo added in v0.3.0

type RunInfo struct {
	Started bool
	End     bool
	RetErr  error
}

type Runner

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

func Empty added in v0.1.5

func Empty() *Runner

func New added in v0.1.5

func New(runFunc func(ctx context.Context) bool) *Runner

func (*Runner) Closed added in v0.1.5

func (runner *Runner) Closed() <-chan struct{}

func (*Runner) DependOn added in v0.1.5

func (runner *Runner) DependOn(dependOn ...*Runner)

func (*Runner) Fork

func (runner *Runner) Fork(runFunc func(ctx context.Context) bool) *Runner

func (*Runner) ForkEmpty added in v0.1.5

func (runner *Runner) ForkEmpty(ctx context.Context) *Runner

func (*Runner) Separate added in v0.1.5

func (runner *Runner) Separate()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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