bettererrgroup

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2026 License: Apache-2.0, MIT Imports: 4 Imported by: 0

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
}

Group is a errgroup.Group that also captures panics from its goroutines and reports them with a stack trace. The original errgroup.Group reports the stack trace of the `Wait()` call, which is much less useful.

func WithContext

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

func (*Group) Go

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

type PanicError

type PanicError struct {
	// contains filtered or unexported fields
}

func (PanicError) Error

func (e PanicError) Error() string

func (PanicError) Recovered

func (e PanicError) Recovered() any

func (PanicError) Stack

func (e PanicError) Stack() string

func (PanicError) Unwrap

func (e PanicError) Unwrap() error

Jump to

Keyboard shortcuts

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