Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WaitGroup ¶
WaitGroup wraps waitgroup.WaitGroup to avoid cycle import. It increases the metrics counter if panic.
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)
Click to show internal directories.
Click to hide internal directories.