Documentation ¶
Overview ¶
Package 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.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶
Group provides an interface compatible with golang.org/x/sync/errgroup for instances that enhance the capabilities of Groups.
type Opt ¶ added in v0.2.11
type Opt func(g *panicGroup)
Opt is a configuration option.
func WithPanicHandler ¶ added in v0.2.11
func WithPanicHandler(ph PanicHandler) Opt
WithPanicHandler overrides the default panic handler.
type PanicHandler ¶ added in v0.2.9
PanicHandler processes the recovered panic.
Click to show internal directories.
Click to hide internal directories.