Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Limiter ¶
type Limiter struct {
// contains filtered or unexported fields
}
Limiter implements concurrent goroutine limiting.
After calling Wait or Close, no new goroutines are allowed to start.
func NewLimiter ¶
NewLimiter creates a new limiter with limit set to n.
func (*Limiter) Close ¶
func (limiter *Limiter) Close()
Close waits for all running goroutines to finish and disallows new goroutines to start.
Click to show internal directories.
Click to hide internal directories.