Documentation ¶
Overview ¶
Package resource defines different concurrent access strategies for resources.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bounded ¶
type Bounded struct {
// contains filtered or unexported fields
}
Bounded is a bounded resource.
func NewBounded ¶
NewBounded creates a new bounded resource that can be acquired n times concurrently.
type Throttled ¶
type Throttled struct {
// contains filtered or unexported fields
}
Throttled in a rate-limited resource.
func NewThrottled ¶
NewThrottled creates a resource with the given rate limit.
Click to show internal directories.
Click to hide internal directories.