Documentation
¶
Overview ¶
Package semaphore provides a weighted semaphore implementation. ref: https://github.com/golang/go/issues/29721
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Limiter ¶
type Limiter struct {
// contains filtered or unexported fields
}
func NewLimiter ¶
func (*Limiter) TryAcquire ¶
type Weighted ¶
type Weighted struct {
// contains filtered or unexported fields
}
func NewWeighted ¶
func (*Weighted) GetCurrent ¶
Click to show internal directories.
Click to hide internal directories.