mirror of
https://github.com/go-micro/go-micro.git
synced 2025-06-18 22:17:44 +02:00
feat: add test framework & refactor RPC server (#2579)
Co-authored-by: Rene Jochum <rene@jochum.dev>
This commit is contained in:
@ -12,6 +12,13 @@ type waitGroup struct {
|
||||
gg *sync.WaitGroup
|
||||
}
|
||||
|
||||
// NewWaitGroup returns a new double waitgroup for global management of processes.
|
||||
func NewWaitGroup(gWg *sync.WaitGroup) *waitGroup {
|
||||
return &waitGroup{
|
||||
gg: gWg,
|
||||
}
|
||||
}
|
||||
|
||||
func (w *waitGroup) Add(i int) {
|
||||
w.lg.Add(i)
|
||||
if w.gg != nil {
|
||||
|
Reference in New Issue
Block a user