优化项目结构
This commit is contained in:
@@ -5,6 +5,12 @@ import (
|
||||
"sync/atomic"
|
||||
)
|
||||
|
||||
type WaitGroup interface {
|
||||
Add(delta uint)
|
||||
Done()
|
||||
Wait()
|
||||
}
|
||||
|
||||
type CountWaitGroup struct {
|
||||
wg sync.WaitGroup
|
||||
num atomic.Int64
|
||||
|
||||
Reference in New Issue
Block a user