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 is precise rate limiter with context support.
func NewLimiter ¶
NewLimiter returns limiter that throttles rate of successful Acquire() calls to maxSize events at any given interval.
Click to show internal directories.
Click to hide internal directories.