waitgroup

package
v1.4.0-nextgen.202510.2 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WaitGroup

type WaitGroup struct {
	waitgroup.WaitGroup
}

WaitGroup wraps waitgroup.WaitGroup to avoid cycle import. It increases the metrics counter if panic.

func (*WaitGroup) Run

func (w *WaitGroup) Run(exec func(), logger *zap.Logger)

func (*WaitGroup) RunWithRecover

func (w *WaitGroup) RunWithRecover(exec func(), recoverFn func(r any), logger *zap.Logger)

type WaitGroupPool

type WaitGroupPool struct {
	waitgroup.WaitGroupPool
}

func NewWaitGroupPool

func NewWaitGroupPool(n int, idleDuration time.Duration) *WaitGroupPool

func (*WaitGroupPool) RunWithRecover

func (w *WaitGroupPool) RunWithRecover(exec func(), recoverFn func(r any), logger *zap.Logger)

Jump to

Keyboard shortcuts

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