tasks

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 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 LiveTasks

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

func NewLiveTasks

func NewLiveTasks(tasks int, concurrency int) *LiveTasks

func (*LiveTasks) AllOk

func (l *LiveTasks) AllOk() bool

func (*LiveTasks) Header

func (l *LiveTasks) Header(header func(over bool, allOk bool) string)

func (*LiveTasks) OnPreRun

func (l *LiveTasks) OnPreRun(handler LiveTasksHandlerFunc)

func (*LiveTasks) OnRun

func (l *LiveTasks) OnRun(handler LiveTasksHandlerFunc)

func (*LiveTasks) Over

func (l *LiveTasks) Over() bool

func (*LiveTasks) Start

func (l *LiveTasks) Start()

func (*LiveTasks) StartAndWait

func (l *LiveTasks) StartAndWait()

func (*LiveTasks) Wait

func (l *LiveTasks) Wait()

type LiveTasksHandlerFunc

type LiveTasksHandlerFunc func(id int, te *TasksExecutor, update UpdateDisplayFunc) error

type TaskHandlerFunc

type TaskHandlerFunc func(id int, te *TasksExecutor) error

type TasksExecutor

type TasksExecutor struct {
	OnPreRun TaskHandlerFunc
	OnRun    TaskHandlerFunc
	// contains filtered or unexported fields
}

func NewTasksExecutor

func NewTasksExecutor(tasks int, concurrency int) *TasksExecutor

func (*TasksExecutor) Start

func (te *TasksExecutor) Start()

func (*TasksExecutor) Wait

func (te *TasksExecutor) Wait()

type UpdateDisplayFunc

type UpdateDisplayFunc func(display string)

Jump to

Keyboard shortcuts

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