update option Wait
This commit is contained in:
parent
43fdf2e83a
commit
87db21bc18
@ -147,8 +147,11 @@ func Wait(wg *sync.WaitGroup) options.Option {
|
||||
if wg == nil {
|
||||
wg = new(sync.WaitGroup)
|
||||
}
|
||||
|
||||
wrap := msync.WrapWaitGroup(wg)
|
||||
|
||||
return func(src interface{}) error {
|
||||
return options.Set(src, wg, ".Wait")
|
||||
return options.Set(src, wrap, ".Wait")
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user