Versions in this module Expand all Collapse all v0 v0.3.0 Jul 17, 2023 Changes in this version + type Weighted struct + func NewWeighted(n int64) *Weighted + func (s *Weighted) Acquire(ctx context.Context, n int64) error + func (s *Weighted) Release(n int64) + func (s *Weighted) TryAcquire(n int64) bool