task

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 License: GPL-2.0 Imports: 3 Imported by: 63

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Any

func Any(ctx context.Context, tasks ...func(ctx context.Context) error) error

func Run

func Run(ctx context.Context, tasks ...func() error) error

Types

type Group

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

func (*Group) Append

func (g *Group) Append(name string, f func(ctx context.Context) error)

func (*Group) Append0

func (g *Group) Append0(f func(ctx context.Context) error)

func (*Group) Cleanup

func (g *Group) Cleanup(f func())

func (*Group) FastFail

func (g *Group) FastFail()

func (*Group) Run

func (g *Group) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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