type golang.org/x/sync/semaphore.Weighted
8 uses
golang.org/x/sync/semaphore (current package)
semaphore.go#L21: func NewWeighted(n int64) *Weighted {
semaphore.go#L22: w := &Weighted{size: n}
semaphore.go#L28: type Weighted struct {
semaphore.go#L40: func (s *Weighted) Acquire(ctx context.Context, n int64) error {
semaphore.go#L87: func (s *Weighted) TryAcquire(n int64) bool {
semaphore.go#L98: func (s *Weighted) Release(n int64) {
semaphore.go#L109: func (s *Weighted) notifyWaiters() {
google.golang.org/api/support/bundler
bundler.go#L90: sem *semaphore.Weighted // enforces BufferedByteLimit
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |