Update go dependencies
This commit is contained in:
parent
14a9e9f3fa
commit
14f4a7b8e8
1349 changed files with 128369 additions and 32627 deletions
1
vendor/golang.org/x/sync/go.mod
generated
vendored
Normal file
1
vendor/golang.org/x/sync/go.mod
generated
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
module golang.org/x/sync
|
||||
6
vendor/golang.org/x/sync/semaphore/semaphore.go
generated
vendored
6
vendor/golang.org/x/sync/semaphore/semaphore.go
generated
vendored
|
|
@ -32,9 +32,9 @@ type Weighted struct {
|
|||
waiters list.List
|
||||
}
|
||||
|
||||
// Acquire acquires the semaphore with a weight of n, blocking only until ctx
|
||||
// is done. On success, returns nil. On failure, returns ctx.Err() and leaves
|
||||
// the semaphore unchanged.
|
||||
// Acquire acquires the semaphore with a weight of n, blocking until resources
|
||||
// are available or ctx is done. On success, returns nil. On failure, returns
|
||||
// ctx.Err() and leaves the semaphore unchanged.
|
||||
//
|
||||
// If ctx is already done, Acquire may still succeed without blocking.
|
||||
func (s *Weighted) Acquire(ctx context.Context, n int64) error {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue