Documentation
¶
Index ¶
- type Group
- func (g *Group) Add(f func())
- func (g *Group) AddMany(count int, f func())
- func (g *Group) AddManyWithContext(ctx context.Context, count int, f func(context.Context))
- func (g *Group) AddWithContext(ctx context.Context, f func(context.Context))
- func (g *Group) Wait()
- func (g *Group) WaitTimeout(timeout time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group struct {
// contains filtered or unexported fields
}
Group is wrapper over sync.WaitGroup
func (*Group) Add ¶
func (g *Group) Add(f func())
Add function calling argument function in a separate goroutine with sync.WaitGroup control
func (*Group) AddManyWithContext ¶
AddManyWithContext running call group.AddWithContext count times
func (*Group) AddWithContext ¶
AddWithContext function calling argument function with context in a separate goroutine with sync.WaitGroup control
Click to show internal directories.
Click to hide internal directories.