59f81a4a0d
we used to do something similar for puts, but that ended up hurting more than it helped. since deletes are best effort, we can do it here to kill long tails or unresponsive nodes. Change-Id: I89fd2d9dcf519d76c78ddad70bc419d1868d2df1
11 lines
486 B
Go
11 lines
486 B
Go
// Copyright (C) 2019 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
// Package groupcancel contains helpers to cancel groups of requests when enough finish.
|
|
//
|
|
// The main type is the Context type which takes a total number of requests, the fraction
|
|
// of the non-failed requests that must succeed before the rest are canceled, and an
|
|
// extra wait fraction to multiply by the time it took to succeed that will be waited
|
|
// before the rest are canceled.
|
|
package groupcancel
|