Help us shape the future of Go! Take the 2026 Go Developer Survey

task

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2026 License: GPL-2.0 Imports: 3 Imported by: 81

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