task

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 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 deprecated

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

Deprecated: Use Group instead

func Run deprecated

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

Deprecated: Use Group instead

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(ctx context.Context) error

Jump to

Keyboard shortcuts

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