task

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func List

func List() ([]string, error)

Types

type Opt

type Opt func(*Task) error

func WithChildren

func WithChildren(children ...*Task) Opt

func WithDeps

func WithDeps(deps ...string) Opt

func WithName

func WithName(name string) Opt

func WithRun

func WithRun(run string) Opt

func WithTouch

func WithTouch(touch ...*sync.Mutex) Opt

func WithWorkingDir

func WithWorkingDir(workingDir string) Opt

type Task

type Task struct {
	Name  string
	Ready chan struct{}
	// contains filtered or unexported fields
}

func NewWithOpts

func NewWithOpts(opts ...Opt) (*Task, error)

func (*Task) AddChildren

func (t *Task) AddChildren(children ...*Task)

func (*Task) Run

func (t *Task) Run() error

Jump to

Keyboard shortcuts

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