type golang.org/x/sync/semaphore.Weighted
9 uses
golang.org/x/sync/semaphore (current package)
semaphore.go#L22: func NewWeighted(n int64) *Weighted {
semaphore.go#L26: return &Weighted{size: n}
semaphore.go#L31: type Weighted struct {
semaphore.go#L41: func (s *Weighted) Acquire(ctx context.Context, n int64) error {
semaphore.go#L117: func (s *Weighted) TryAcquire(n int64) bool {
semaphore.go#L131: func (s *Weighted) Release(n int64) {
semaphore.go#L145: func (s *Weighted) notifyWaiters() {
github.com/jackc/puddle/v2
pool.go#L130: acquireSem *semaphore.Weighted
pool.go#L551: func acquireSemAll(sem *semaphore.Weighted, num int) int {
The pages are generated with Golds v0.8.7. (GOOS=linux GOARCH=amd64)