Documentation
¶
Index ¶
- func ContextWithNewCancel(parent context.Context, done <-chan struct{}) context.Context
- func ContextWithTimeout(parent context.Context, clock clockwork.Clock, timeout time.Duration) (context.Context, context.CancelFunc)
- func IsPermanent(err error) bool
- func MakeChanInfCap[T any](expectedCap int) (<-chan T, chan<- T)
- func Permanent(err error) error
- func RetryWithBackoff(ctx context.Context, c clockwork.Clock, f func() error) error
- type Background
- type Dedup
- type DedupContr
- type Fanout
- type Request
- type Result
- type Retrier
- type Worker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithNewCancel ¶
ContextWithNewCancel replaces the parent cancellation (if any) with the given one, while preserving the embedded values.
func ContextWithTimeout ¶
func IsPermanent ¶
func MakeChanInfCap ¶
MakeChainInfCap simulates a channel with infinite capacity. This will never block the sender and grow an internal buffer if necessary.
Close the input channel when finished, to free resources.
Types ¶
type Background ¶
type Background struct {
// contains filtered or unexported fields
}
func NewBackground ¶
func NewBackground() *Background
func (*Background) Close ¶
func (b *Background) Close()
type DedupContr ¶
Click to show internal directories.
Click to hide internal directories.