package
0.8.2
Repository: https://github.com/tomcz/gotools.git
Documentation: pkg.go.dev

# README

errgroup

Provides a panic handling wrapper around golang.org/x/sync/errgroup to avoid application crashes when a goroutine encounters a panic. In the event of a panic this wrapper will convert the panic into an error that is returned from the Wait function. In all other ways this wrapper behaves exactly as the wrapped Group.

# Functions

New creates a panic-handling Group, without any context cancellation.
NewContext creates a panic-handling Group.
WithPanicHandler overrides the default panic handler.

# Interfaces

Group provides an interface compatible with golang.org/x/sync/errgroup for instances that enhance the capabilities of Groups.

# Type aliases

Opt is a configuration option.
PanicHandler processes the recovered panic.