Documentation
¶
Overview ¶
Package limit provides a channel-based semaphore for bounding concurrency.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrLimitReturn = errors.New("limit: discarding token, pool is full, returned multiple times")
ErrLimitReturn indicates more tokens were returned than borrowed.
Functions ¶
This section is empty.
Types ¶
type Limit ¶
type Limit struct {
// contains filtered or unexported fields
}
Limit controls the number of concurrent borrows.
Click to show internal directories.
Click to hide internal directories.