Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WeightedSemaphore ¶
type WeightedSemaphore struct {
TryAcquireFn func(int64) bool
AcquireFn func(context.Context, int64) error
ReleaseFn func(uint64, int64)
// contains filtered or unexported fields
}
func (*WeightedSemaphore) Acquire ¶
func (m *WeightedSemaphore) Acquire(ctx context.Context, i int64) error
func (*WeightedSemaphore) GetReleaseCalls ¶
func (m *WeightedSemaphore) GetReleaseCalls() uint64
func (*WeightedSemaphore) Release ¶
func (m *WeightedSemaphore) Release(i int64)
func (*WeightedSemaphore) TryAcquire ¶
func (m *WeightedSemaphore) TryAcquire(i int64) bool
Click to show internal directories.
Click to hide internal directories.