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