Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Limiter ¶
type Limiter struct {
// contains filtered or unexported fields
}
Limiter works kind of like the reverse of a WaitGroup. It uses a straightforward locking process that will cause a lock to be required for Done() but considering the locking is only happening on limited operations it shouldn't be slow
func NewLimiter ¶
NewLimiter returns a new limiter with the given maximum number of ongoing processes
Click to show internal directories.
Click to hide internal directories.