itd/waitgroup.go

17 lines
218 B
Go
Raw Normal View History

package main
import (
"sync"
2023-04-21 02:54:58 +00:00
"go.elara.ws/logger/log"
)
type WaitGroup struct {
*sync.WaitGroup
}
func (wg WaitGroup) Done(c string) {
log.Info("Component stopped").Str("name", c).Send()
wg.WaitGroup.Done()
}