task

package
v0.0.0-...-96111de Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2020 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

type Group []Task

Group is a group of tasks. Sub-tasks will be executed sequentially.

func (Group) Do

func (tasks Group) Do() error

Do executes sub-tasks sequentially. It returns error if one sub-task returns error.

type Task

type Task interface {
	Do() error
}

Task presents a task. It has Do function to execute the task.

Jump to

Keyboard shortcuts

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