task

package
v0.4.0-beta.12 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: GPL-2.0 Imports: 4 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) Concurrency added in v0.3.0

func (g *Group) Concurrency(n int)

func (*Group) FastFail

func (g *Group) FastFail()

func (*Group) Run

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

func (*Group) RunContextList added in v0.2.3

func (g *Group) RunContextList(contextList []context.Context) error

Jump to

Keyboard shortcuts

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