looseerrgroup

package
v1.1.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Wait

func Wait(ctx context.Context, g *errgroup.Group) error

Wait waits until g.Wait() returns or ctx canceled, whichever occurs first. returned error is context.Canceled if ctx canceled otherwise the error returned by g.Wait().

this is useful when errgroup cannot be used with errgroup.WithContext which happens if executed func does not support cancelation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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