Documentation ¶
Index ¶
Constants ¶
View Source
const ErrInvalidCapacity = SentinelError("capacity not within range [0,1]")
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Capacity ¶
type Capacity struct {
// contains filtered or unexported fields
}
func NewCapacity ¶
func (Capacity) MaxAvailable ¶
type SentinelError ¶
type SentinelError string
SentinelError is type for defining constant error values.
Inspired by: https://dave.cheney.net/2019/06/10/constant-time
func (SentinelError) Error ¶
func (e SentinelError) Error() string
Error returns the string value of a SentinelError.
Click to show internal directories.
Click to hide internal directories.