Versions in this module Expand all Collapse all v0 v0.5.1 Dec 27, 2023 v0.1.0 Feb 22, 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