xerrgroup

package
v1.0.10 Latest Latest
Warning

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

Go to latest
Published: May 15, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewErrGroup

func NewErrGroup(of ...OptionFunc) *group

func WithContext

func WithContext(ctx context.Context) (*group, context.Context)

WithContext returns a new Group and an associated Context derived from ctx.

The derived Context is canceled the first time a function passed to Go returns a non-nil error or the first time Wait returns, whichever occurs first.

Types

type OptionFunc added in v1.0.2

type OptionFunc func(o *group)

func SetCancel added in v1.0.2

func SetCancel(f func()) OptionFunc

Jump to

Keyboard shortcuts

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