errgroup

package
v0.0.0-...-c26f926 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: MIT Imports: 3 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Group

type Group struct {
	*errgroup.Group
	// contains filtered or unexported fields
}

func (*Group) Go

func (g *Group) Go(f func() error)

type Runner

type Runner interface {
	Go(f func() error)
	Wait() error
}

func WithConcurrency

func WithConcurrency(ctx context.Context, concurrency int) (Runner, context.Context)

func WithContext

func WithContext(ctx context.Context) (Runner, context.Context)

Jump to

Keyboard shortcuts

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